aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/mod.rs
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/standard/mod.rs
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/standard/mod.rs')
-rw-r--r--src/framework/standard/mod.rs4
1 files changed, 2 insertions, 2 deletions
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);