diff options
| author | Zeyla Hellyer <[email protected]> | 2017-10-10 21:09:17 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-11 20:59:34 -0700 |
| commit | 483b069cc0c821ec673ac475b168809e3a41525a (patch) | |
| tree | 32fc42c8c0a5d65cd81b8044dd60e9e73a26f526 /src/voice | |
| parent | Add env_logger bot example (diff) | |
| download | serenity-483b069cc0c821ec673ac475b168809e3a41525a.tar.xz serenity-483b069cc0c821ec673ac475b168809e3a41525a.zip | |
Fix clippy lints
Diffstat (limited to 'src/voice')
| -rw-r--r-- | src/voice/audio.rs | 2 | ||||
| -rw-r--r-- | src/voice/connection.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/voice/audio.rs b/src/voice/audio.rs index be3ae60..24a4fcd 100644 --- a/src/voice/audio.rs +++ b/src/voice/audio.rs @@ -1,5 +1,5 @@ pub const HEADER_LEN: usize = 12; -pub const SAMPLE_RATE: u32 = 48000; +pub const SAMPLE_RATE: u32 = 48_000; /// A readable audio source. pub trait AudioSource: Send { 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); |