aboutsummaryrefslogtreecommitdiff
path: root/src/voice/manager.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/manager.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/manager.rs')
-rw-r--r--src/voice/manager.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/voice/manager.rs b/src/voice/manager.rs
index b4b36b0..213a563 100644
--- a/src/voice/manager.rs
+++ b/src/voice/manager.rs
@@ -31,8 +31,8 @@ impl Manager {
pub(crate) fn new(ws: MpscSender<InterMessage>, user_id: UserId) -> Manager {
Manager {
handlers: HashMap::new(),
- user_id: user_id,
- ws: ws,
+ user_id,
+ ws,
}
}