aboutsummaryrefslogtreecommitdiff
path: root/src/voice/threading.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/threading.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/threading.rs')
-rw-r--r--src/voice/threading.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/voice/threading.rs b/src/voice/threading.rs
index 5731e86..1e826a4 100644
--- a/src/voice/threading.rs
+++ b/src/voice/threading.rs
@@ -1,9 +1,13 @@
use internal::Timer;
use model::id::GuildId;
-use std::sync::mpsc::{Receiver as MpscReceiver, TryRecvError};
-use std::thread::Builder as ThreadBuilder;
-use super::connection::Connection;
-use super::Status;
+use std::{
+ sync::mpsc::{Receiver as MpscReceiver, TryRecvError},
+ thread::Builder as ThreadBuilder
+};
+use super::{
+ connection::Connection,
+ Status
+};
pub(crate) fn start(guild_id: GuildId, rx: MpscReceiver<Status>) {
let name = format!("Serenity Voice (G{})", guild_id);