diff options
| author | Zeyla Hellyer <[email protected]> | 2018-06-17 15:53:09 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-06-17 15:53:09 -0700 |
| commit | 6ddfef8359a619be9a49be7b33b466724eed0ecb (patch) | |
| tree | 5fb9c070b1650b95aa6b5713b3630fc253095275 /src/voice | |
| parent | Fix Args test (diff) | |
| download | serenity-6ddfef8359a619be9a49be7b33b466724eed0ecb.tar.xz serenity-6ddfef8359a619be9a49be7b33b466724eed0ecb.zip | |
Remove extraneous spaces at the end of lines
Diffstat (limited to 'src/voice')
| -rw-r--r-- | src/voice/audio.rs | 2 | ||||
| -rw-r--r-- | src/voice/connection.rs | 20 | ||||
| -rw-r--r-- | src/voice/handler.rs | 4 | ||||
| -rw-r--r-- | src/voice/mod.rs | 14 | ||||
| -rw-r--r-- | src/voice/streamer.rs | 18 |
5 files changed, 29 insertions, 29 deletions
diff --git a/src/voice/audio.rs b/src/voice/audio.rs index b541f49..2e15590 100644 --- a/src/voice/audio.rs +++ b/src/voice/audio.rs @@ -46,7 +46,7 @@ pub enum AudioType { /// /// # Example /// -/// ```rust,ignore +/// ```rust,ignore /// use serenity::voice::{Handler, LockedAudio, ffmpeg}; /// /// let handler: Handler = /* ... */; diff --git a/src/voice/connection.rs b/src/voice/connection.rs index 8e94486..54d9116 100644 --- a/src/voice/connection.rs +++ b/src/voice/connection.rs @@ -1,8 +1,8 @@ use byteorder::{ - BigEndian, - ByteOrder, - LittleEndian, - ReadBytesExt, + BigEndian, + ByteOrder, + LittleEndian, + ReadBytesExt, WriteBytesExt }; use constants::VOICE_GATEWAY_VERSION; @@ -32,15 +32,15 @@ use std::{ net::{SocketAddr, ToSocketAddrs, UdpSocket}, sync::{ mpsc::{ - self, - Receiver as MpscReceiver, + self, + Receiver as MpscReceiver, Sender as MpscSender }, Arc, }, thread::{ - self, - Builder as ThreadBuilder, + self, + Builder as ThreadBuilder, JoinHandle }, time::Duration @@ -53,8 +53,8 @@ use websocket::{ sync::{ client::ClientBuilder, stream::{ - AsTcpStream, - TcpStream, + AsTcpStream, + TcpStream, TlsStream }, }, diff --git a/src/voice/handler.rs b/src/voice/handler.rs index 070b0c1..d42b8b8 100644 --- a/src/voice/handler.rs +++ b/src/voice/handler.rs @@ -2,8 +2,8 @@ use constants::VoiceOpCode; use gateway::InterMessage; use model::{ id::{ - ChannelId, - GuildId, + ChannelId, + GuildId, UserId }, voice::VoiceState diff --git a/src/voice/mod.rs b/src/voice/mod.rs index 283ab36..51fb0e2 100644 --- a/src/voice/mod.rs +++ b/src/voice/mod.rs @@ -13,10 +13,10 @@ mod threading; pub use self::{ audio::{ - Audio, - AudioReceiver, - AudioSource, - AudioType, + Audio, + AudioReceiver, + AudioSource, + AudioType, LockedAudio }, dca::DcaMetadata, @@ -24,9 +24,9 @@ pub use self::{ handler::Handler, manager::Manager, streamer::{ - dca, - ffmpeg, - opus, + dca, + ffmpeg, + opus, pcm, ytdl } diff --git a/src/voice/streamer.rs b/src/voice/streamer.rs index faf467c..bf77b1d 100644 --- a/src/voice/streamer.rs +++ b/src/voice/streamer.rs @@ -5,23 +5,23 @@ use std::{ ffi::OsStr, fs::File, io::{ - BufReader, - ErrorKind as IoErrorKind, - Read, + BufReader, + ErrorKind as IoErrorKind, + Read, Result as IoResult }, process::{ - Child, - Command, + Child, + Command, Stdio }, result::Result as StdResult }; use super::{ - AudioSource, - AudioType, - DcaError, - DcaMetadata, + AudioSource, + AudioType, + DcaError, + DcaMetadata, VoiceError }; |