diff options
| author | Lakelezz <[email protected]> | 2018-09-10 05:38:20 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-09-10 05:38:20 +0200 |
| commit | c49e02ca024b0263d2b7e23e67338558555101ea (patch) | |
| tree | 35953c84f146ea879a735f8947aefb5f70b8a07b /src | |
| parent | Fix group-prefix ambiguity in help (#384) (diff) | |
| download | serenity-c49e02ca024b0263d2b7e23e67338558555101ea.tar.xz serenity-c49e02ca024b0263d2b7e23e67338558555101ea.zip | |
Fix to build with Rust 1.25.0.
Diffstat (limited to 'src')
| -rw-r--r-- | src/framework/standard/help_commands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs index dc9b273..f923db0 100644 --- a/src/framework/standard/help_commands.rs +++ b/src/framework/standard/help_commands.rs @@ -359,7 +359,7 @@ fn fetch_single_command<'a, H: BuildHasher>( if let &CommandOrAlias::Command(ref cmd) = command { - let command_name = if let Some(ref prefixes) = &group.prefixes { + let command_name = if let &Some(ref prefixes) = &group.prefixes { if let Some(first_prefix) = prefixes.get(0) { format!("{} {}", &first_prefix, &command_name).to_string() } else { |