aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-07-29 19:45:26 -0700
committerZeyla Hellyer <[email protected]>2018-07-29 19:45:26 -0700
commitf3f22d7e072477028c9853d467dd18cf50e1589f (patch)
treecf7364dee857dc984f003da58df123ee81c08c73 /src/framework
parentFix closing code fence in readme (diff)
downloadserenity-f3f22d7e072477028c9853d467dd18cf50e1589f.tar.xz
serenity-f3f22d7e072477028c9853d467dd18cf50e1589f.zip
Reduce minimal Rust version to 1.25
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/standard/help_commands.rs4
-rw-r--r--src/framework/standard/mod.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs
index fd74ace..e891ff5 100644
--- a/src/framework/standard/help_commands.rs
+++ b/src/framework/standard/help_commands.rs
@@ -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),
);
@@ -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);
diff --git a/src/framework/standard/mod.rs b/src/framework/standard/mod.rs
index d947bfd..1fa9a13 100644
--- a/src/framework/standard/mod.rs
+++ b/src/framework/standard/mod.rs
@@ -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 || {
@@ -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);