Skip to content

Commit

Permalink
Fix to build with Rust 1.25.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakelezz committed Sep 10, 2018
1 parent f01e6e3 commit c49e02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/standard/help_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c49e02c

Please sign in to comment.