diff options
| author | Zeyla Hellyer <[email protected]> | 2017-04-18 21:21:30 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-04-19 14:53:32 -0700 |
| commit | ff4437addb01e5c6c3ad8c5b1830db0d0a86396b (patch) | |
| tree | 1aa48b22a111174172b97ee9b41998ac3656c73d /src/ext/framework/help_commands.rs | |
| parent | Remove ChannelPinsAck/MessageAck events (diff) | |
| download | serenity-ff4437addb01e5c6c3ad8c5b1830db0d0a86396b.tar.xz serenity-ff4437addb01e5c6c3ad8c5b1830db0d0a86396b.zip | |
Accept a slice of args in help commands
The help commands don't actually need to have the arguments passed by
value, so passing them by reference is fine.
Diffstat (limited to 'src/ext/framework/help_commands.rs')
| -rw-r--r-- | src/ext/framework/help_commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/framework/help_commands.rs b/src/ext/framework/help_commands.rs index cee0e5e..1f38bd5 100644 --- a/src/ext/framework/help_commands.rs +++ b/src/ext/framework/help_commands.rs @@ -54,7 +54,7 @@ fn remove_aliases(cmds: &HashMap<String, CommandOrAlias>) -> HashMap<&String, &I pub fn with_embeds(ctx: &mut Context, _: &Message, groups: HashMap<String, Arc<CommandGroup>>, - args: Vec<String>) -> Result<(), String> { + args: &[String]) -> Result<(), String> { if !args.is_empty() { let name = args.join(" "); @@ -179,7 +179,7 @@ pub fn with_embeds(ctx: &mut Context, pub fn plain(ctx: &mut Context, _: &Message, groups: HashMap<String, Arc<CommandGroup>>, - args: Vec<String>) -> Result<(), String> { + args: &[String]) -> Result<(), String> { if !args.is_empty() { let name = args.join(" "); |