diff options
| author | acdenisSK <[email protected]> | 2018-03-29 12:10:43 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-03-29 12:11:23 +0200 |
| commit | 4c05e828d5191975ef1a5e1ac581b646a69d2c25 (patch) | |
| tree | fb583f88a1e5d192651b399aca1839f3f58e661e /src/voice/handler.rs | |
| parent | Add a connection timeout (diff) | |
| download | serenity-4c05e828d5191975ef1a5e1ac581b646a69d2c25.tar.xz serenity-4c05e828d5191975ef1a5e1ac581b646a69d2c25.zip | |
Refactor imports/exports to use nested groups and better formatting
Diffstat (limited to 'src/voice/handler.rs')
| -rw-r--r-- | src/voice/handler.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/voice/handler.rs b/src/voice/handler.rs index 2c9cf48..070b0c1 100644 --- a/src/voice/handler.rs +++ b/src/voice/handler.rs @@ -1,10 +1,18 @@ use constants::VoiceOpCode; use gateway::InterMessage; -use model::id::{ChannelId, GuildId, UserId}; -use model::voice::VoiceState; +use model::{ + id::{ + ChannelId, + GuildId, + UserId + }, + voice::VoiceState +}; use parking_lot::Mutex; -use std::sync::Arc; -use std::sync::mpsc::{self, Sender as MpscSender}; +use std::sync::{ + mpsc::{self, Sender as MpscSender}, + Arc +}; use super::connection_info::ConnectionInfo; use super::{Audio, AudioReceiver, AudioSource, Status as VoiceStatus, threading, LockedAudio}; |