diff options
Diffstat (limited to 'src/framework/help_commands.rs')
| -rw-r--r-- | src/framework/help_commands.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/framework/help_commands.rs b/src/framework/help_commands.rs index 3396f3c..a4dbe76 100644 --- a/src/framework/help_commands.rs +++ b/src/framework/help_commands.rs @@ -179,7 +179,7 @@ pub fn with_embeds(ctx: &mut Context, for name in command_names { let cmd = &commands[name]; - + if cmd.help_available { let _ = write!(desc, "`{}`\n", name); @@ -188,7 +188,7 @@ pub fn with_embeds(ctx: &mut Context, } if has_commands { - e = e.field(|f| f.name(&group_name).value(&desc)); + e = e.field(|f| f.name(group_name).value(&desc)); } } @@ -301,16 +301,16 @@ pub fn plain(ctx: &mut Context, let commands = remove_aliases(&group.commands); let mut command_names = commands.keys().collect::<Vec<_>>(); command_names.sort(); - + for name in command_names { let cmd = &commands[name]; - + if cmd.help_available { let _ = write!(group_help, "`{}` ", name); } } - if group_help.len() > 0 { + if !group_help.is_empty() { let _ = write!(result, "**{}:** ", group_name); if let Some(ref x) = group.prefix { |