aboutsummaryrefslogtreecommitdiff
path: root/src/gateway
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-27 08:16:12 +0200
committeracdenisSK <[email protected]>2017-07-27 08:16:27 +0200
commita53585cd77649733843c993146bc4e422a12ba17 (patch)
tree1135217d8314578e073400ad54b8436462d7fce1 /src/gateway
parentChange the config a bit, and a few nitpicks (diff)
downloadserenity-a53585cd77649733843c993146bc4e422a12ba17.tar.xz
serenity-a53585cd77649733843c993146bc4e422a12ba17.zip
Fix the `_other` match arm
Diffstat (limited to 'src/gateway')
-rw-r--r--src/gateway/shard.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gateway/shard.rs b/src/gateway/shard.rs
index e9f1642..0c34f0e 100644
--- a/src/gateway/shard.rs
+++ b/src/gateway/shard.rs
@@ -347,9 +347,12 @@ impl Shard {
self.stage = ConnectionStage::Connected;
},
- ref _other => #[cfg(feature = "voice")]
- {
- self.voice_dispatch(_other);
+ #[cfg_attr(rustfmt, rustfmt_skip)]
+ ref _other => {
+ #[cfg(feature = "voice")]
+ {
+ self.voice_dispatch(_other);
+ }
},
}