aboutsummaryrefslogtreecommitdiff
path: root/src/voice/handler.rs
diff options
context:
space:
mode:
authorLeah <[email protected]>2018-03-23 13:54:12 +0100
committeralex <[email protected]>2018-03-23 13:54:12 +0100
commitfdcf44e1463e708cd8b612c183e302db9af0febd (patch)
tree1a311f26fb38522ba380881fa6e72c0c2e5c54bc /src/voice/handler.rs
parentFix Create(Embed/Message) to be consistent (diff)
downloadserenity-fdcf44e1463e708cd8b612c183e302db9af0febd.tar.xz
serenity-fdcf44e1463e708cd8b612c183e302db9af0febd.zip
Change the way ids and some enums are made (#295)
This makes them easier to be found by tools like rls. Also update struct inits to use the shorthand version for `x: x`.
Diffstat (limited to 'src/voice/handler.rs')
-rw-r--r--src/voice/handler.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/voice/handler.rs b/src/voice/handler.rs
index 4124d66..2c9cf48 100644
--- a/src/voice/handler.rs
+++ b/src/voice/handler.rs
@@ -149,11 +149,11 @@ impl Handler {
// Safe as all of these being present was already checked.
self.send(VoiceStatus::Connect(ConnectionInfo {
- endpoint: endpoint,
- guild_id: guild_id,
- session_id: session_id,
- token: token,
- user_id: user_id,
+ endpoint,
+ guild_id,
+ session_id,
+ token,
+ user_id,
}));
true
@@ -373,14 +373,14 @@ impl Handler {
Handler {
channel_id: None,
endpoint: None,
- guild_id: guild_id,
+ guild_id,
self_deaf: false,
self_mute: false,
sender: tx,
session_id: None,
token: None,
- user_id: user_id,
- ws: ws,
+ user_id,
+ ws,
}
}