aboutsummaryrefslogtreecommitdiff
path: root/src/ext/voice/handler.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-04-09 12:24:14 -0700
committerZeyla Hellyer <[email protected]>2017-04-09 12:24:14 -0700
commitc8536c111117f26833fb1bceff734ac1abc55479 (patch)
tree6d4c3d78fb4809d6c70968af1ce87f4a2e77fd36 /src/ext/voice/handler.rs
parentRemove support for group calls and guild sync (diff)
downloadserenity-c8536c111117f26833fb1bceff734ac1abc55479.tar.xz
serenity-c8536c111117f26833fb1bceff734ac1abc55479.zip
Clippy lints + permission byte literals
Perform a number of various clippy lints, and rewrite the permissions values to use byte literals instead of bitshifts.
Diffstat (limited to 'src/ext/voice/handler.rs')
-rw-r--r--src/ext/voice/handler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/voice/handler.rs b/src/ext/voice/handler.rs
index cb5838c..60cc6e6 100644
--- a/src/ext/voice/handler.rs
+++ b/src/ext/voice/handler.rs
@@ -220,7 +220,7 @@ impl Handler {
/// [`standalone`]: #method.standalone
pub fn leave(&mut self) {
// Only send an update if we were in a voice channel.
- if let Some(_) = self.channel_id {
+ if self.channel_id.is_some() {
self.channel_id = None;
self.update();