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/streamer.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/streamer.rs')
| -rw-r--r-- | src/voice/streamer.rs | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/src/voice/streamer.rs b/src/voice/streamer.rs index 3265fb6..0f0e9ef 100644 --- a/src/voice/streamer.rs +++ b/src/voice/streamer.rs @@ -1,12 +1,29 @@ use byteorder::{LittleEndian, ReadBytesExt}; use internal::prelude::*; use serde_json; -use std::ffi::OsStr; -use std::fs::File; -use std::io::{BufReader, ErrorKind as IoErrorKind, Read, Result as IoResult}; -use std::process::{Child, Command, Stdio}; -use std::result::Result as StdResult; -use super::{AudioSource, AudioType, DcaError, DcaMetadata, VoiceError}; +use std::{ + ffi::OsStr, + fs::File, + io::{ + BufReader, + ErrorKind as IoErrorKind, + Read, + Result as IoResult + }, + process::{ + Child, + Command, + Stdio + }, + result::Result as StdResult +}; +use super::{ + AudioSource, + AudioType, + DcaError, + DcaMetadata, + VoiceError +}; struct ChildContainer(Child); |