aboutsummaryrefslogtreecommitdiff
path: root/src/voice/connection.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-10-10 21:09:17 -0700
committerZeyla Hellyer <[email protected]>2017-10-11 20:59:34 -0700
commit483b069cc0c821ec673ac475b168809e3a41525a (patch)
tree32fc42c8c0a5d65cd81b8044dd60e9e73a26f526 /src/voice/connection.rs
parentAdd env_logger bot example (diff)
downloadserenity-483b069cc0c821ec673ac475b168809e3a41525a.tar.xz
serenity-483b069cc0c821ec673ac475b168809e3a41525a.zip
Fix clippy lints
Diffstat (limited to 'src/voice/connection.rs')
-rw-r--r--src/voice/connection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voice/connection.rs b/src/voice/connection.rs
index 3b31488..07033cc 100644
--- a/src/voice/connection.rs
+++ b/src/voice/connection.rs
@@ -138,7 +138,7 @@ impl Connection {
.set_read_timeout(Some(Duration::from_millis(25)));
let mutexed_client = Arc::new(Mutex::new(client));
- let thread_items = start_threads(mutexed_client.clone(), &udp)?;
+ let thread_items = start_threads(Arc::clone(&mutexed_client), &udp)?;
info!("[Voice] Connected to: {}", info.endpoint);