aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/voice/handler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/voice/handler.rs b/src/voice/handler.rs
index d4085d5..c3a5f05 100644
--- a/src/voice/handler.rs
+++ b/src/voice/handler.rs
@@ -228,8 +228,8 @@ 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) {
- self.send(VoiceStatus::SetReceiver(receiver.into()))
+ pub fn listen(&mut self, receiver: Option<Box<AudioReceiver>>) {
+ self.send(VoiceStatus::SetReceiver(receiver))
}
/// Sets whether the current connection is to be muted.