diff options
| author | Zeyla Hellyer <[email protected]> | 2017-08-18 16:14:32 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-08-18 17:52:53 -0700 |
| commit | e4113570967a1fb13539efbfa2cf7285b19d95ba (patch) | |
| tree | 06bb020fcfaa5f8323454dfb525272314a900186 /src/framework/help_commands.rs | |
| parent | Move Clippy lints to a cfg_attr (diff) | |
| download | serenity-e4113570967a1fb13539efbfa2cf7285b19d95ba.tar.xz serenity-e4113570967a1fb13539efbfa2cf7285b19d95ba.zip | |
Apply rustfmt
Diffstat (limited to 'src/framework/help_commands.rs')
| -rw-r--r-- | src/framework/help_commands.rs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/framework/help_commands.rs b/src/framework/help_commands.rs index dec0053..7846259 100644 --- a/src/framework/help_commands.rs +++ b/src/framework/help_commands.rs @@ -117,15 +117,19 @@ pub fn with_embeds(_: &mut Context, if let Some(ref usage) = command.usage { embed = embed.field(|f| { - f.name("Usage") - .value(&format!("`{} {}`", command_name, usage)) + f.name("Usage").value( + &format!("`{} {}`", command_name, usage), + ) }); } if let Some(ref example) = command.example { embed = embed.field(|f| { - f.name("Sample usage") - .value(&format!("`{} {}`", command_name, example)) + f.name("Sample usage").value(&format!( + "`{} {}`", + command_name, + example + )) }); } @@ -295,8 +299,10 @@ pub fn plain(_: &mut Context, } } - let _ = msg.channel_id - .say(&format!("**Error**: Command `{}` not found.", name)); + let _ = msg.channel_id.say(&format!( + "**Error**: Command `{}` not found.", + name + )); return Ok(()); } |