Skip to content

Commit

Permalink
Reduce minimal Rust version to 1.25
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyla Hellyer committed Jul 30, 2018
1 parent eaaf7cb commit f3f22d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/framework/standard/help_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub fn with_embeds<H: BuildHasher>(
&help_options.striked_commands_tip_in_dm
};

if let Some(ref striked_command_text) = striked_command_tip {
if let &Some(ref striked_command_text) = striked_command_tip {
e = e.colour(help_options.embed_success_colour).description(
format!("{}\n{}", &help_options.individual_command_tip, striked_command_text),
);
Expand Down Expand Up @@ -510,7 +510,7 @@ pub fn plain<H: BuildHasher>(
&help_options.striked_commands_tip_in_dm
};

if let Some(ref striked_command_text) = striked_command_tip {
if let &Some(ref striked_command_text) = striked_command_tip {
let _ = writeln!(result, "{}\n{}\n", &help_options.individual_command_tip, striked_command_text);
} else {
let _ = writeln!(result, "{}\n", &help_options.individual_command_tip);
Expand Down
4 changes: 2 additions & 2 deletions src/framework/standard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ impl Framework for StandardFramework {
}

if check_contains_group_prefix {
if let Some(CommandOrAlias::Command(ref command)) = &group.default_command {
if let &Some(CommandOrAlias::Command(ref command)) = &group.default_command {
let command = Arc::clone(command);

threadpool.execute(move || {
Expand Down Expand Up @@ -1172,7 +1172,7 @@ impl Framework for StandardFramework {
}
}

if let Some(unrecognised_command) = &self.unrecognised_command {
if let &Some(ref unrecognised_command) = &self.unrecognised_command {
let unrecognised_command = unrecognised_command.clone();
threadpool.execute(move || {
(unrecognised_command)(&mut context, &message, &unrecognised_command_name);
Expand Down

0 comments on commit f3f22d7

Please sign in to comment.