diff options
| author | acdenisSK <[email protected]> | 2017-08-24 15:26:49 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-08-24 16:36:01 +0200 |
| commit | b3a5bc89ad1c09290fb1c15ca3b36fe17c3796f3 (patch) | |
| tree | 315e16f7b252d22b5f832302e722a85c9e6a9b6e /src/voice/handler.rs | |
| parent | Allow FromStr for User to use REST (#147) (diff) | |
| download | serenity-b3a5bc89ad1c09290fb1c15ca3b36fe17c3796f3.tar.xz serenity-b3a5bc89ad1c09290fb1c15ca3b36fe17c3796f3.zip | |
Revamp `RwLock` usage in the lib
Also not quite sure if they goofed rustfmt or something, but its changes it did were a bit bizarre.
Diffstat (limited to 'src/voice/handler.rs')
| -rw-r--r-- | src/voice/handler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voice/handler.rs b/src/voice/handler.rs index 24b3cd9..9c3f691 100644 --- a/src/voice/handler.rs +++ b/src/voice/handler.rs @@ -225,7 +225,7 @@ impl Handler { /// can pass in just a boxed receiver, and do not need to specify `Some`. /// /// Pass `None` to drop the current receiver, if one exists. - pub fn listen<O: Into<Option<Box<AudioReceiver>>>>(&mut self, receiver: O) { +pub fn listen<O: Into<Option<Box<AudioReceiver>>>>(&mut self, receiver: O){ self.send(VoiceStatus::SetReceiver(receiver.into())) } |