aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-21 19:28:26 -0800
committerAustin Hellyer <[email protected]>2016-11-21 19:28:26 -0800
commit59f546d8d84d8dad76c1f159f1cd7ef4ccea00fb (patch)
tree9e89a122328f14e298c50681e432a3bf3d5d50e9 /examples
parentRe-organize the client module (diff)
downloadserenity-59f546d8d84d8dad76c1f159f1cd7ef4ccea00fb.tar.xz
serenity-59f546d8d84d8dad76c1f159f1cd7ef4ccea00fb.zip
Don't unnecessarily borrow some if-lets
Diffstat (limited to 'examples')
-rw-r--r--examples/07_voice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/07_voice.rs b/examples/07_voice.rs
index 3250512..e0dfd88 100644
--- a/examples/07_voice.rs
+++ b/examples/07_voice.rs
@@ -105,7 +105,7 @@ fn join(context: Context, message: Message, args: Vec<String>) {
};
let mut shard = context.shard.lock().unwrap();
- let ref mut manager = shard.manager;
+ let mut manager = &mut shard.manager;
let _handler = manager.join(Some(guild_id), connect_to);