aboutsummaryrefslogtreecommitdiff
path: root/src/voice/handler.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2018-03-29 12:10:43 +0200
committeracdenisSK <[email protected]>2018-03-29 12:11:23 +0200
commit4c05e828d5191975ef1a5e1ac581b646a69d2c25 (patch)
treefb583f88a1e5d192651b399aca1839f3f58e661e /src/voice/handler.rs
parentAdd a connection timeout (diff)
downloadserenity-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.rs16
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};