diff options
| author | Zeyla Hellyer <[email protected]> | 2017-11-11 10:05:33 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-11-11 10:05:33 -0800 |
| commit | 348d52b50780109a77a5223d2ede8e0b9a490cfd (patch) | |
| tree | 1049f8ab6be8f9b22ec69a3746ae37a90c6f6a62 /src/internal | |
| parent | Simplify Error's `Display` impl (diff) | |
| download | serenity-348d52b50780109a77a5223d2ede8e0b9a490cfd.tar.xz serenity-348d52b50780109a77a5223d2ede8e0b9a490cfd.zip | |
Re-order use statements alphabetically
Diffstat (limited to 'src/internal')
| -rw-r--r-- | src/internal/prelude.rs | 2 | ||||
| -rw-r--r-- | src/internal/timer.rs | 2 | ||||
| -rw-r--r-- | src/internal/ws_impl.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/internal/prelude.rs b/src/internal/prelude.rs index 21009d4..e248206 100644 --- a/src/internal/prelude.rs +++ b/src/internal/prelude.rs @@ -6,9 +6,9 @@ pub type JsonMap = Map<String, Value>; +pub use error::{Error, Result}; pub use serde_json::{Map, Number, Value}; pub use std::result::Result as StdResult; -pub use error::{Error, Result}; #[cfg(feature = "client")] pub use client::ClientError; diff --git a/src/internal/timer.rs b/src/internal/timer.rs index 68d817a..fa2fcc2 100644 --- a/src/internal/timer.rs +++ b/src/internal/timer.rs @@ -1,6 +1,6 @@ use chrono::{DateTime, Duration, Utc}; -use std::thread; use std::time::Duration as StdDuration; +use std::thread; #[derive(Debug)] pub struct Timer { diff --git a/src/internal/ws_impl.rs b/src/internal/ws_impl.rs index 8edb69b..c1ac83b 100644 --- a/src/internal/ws_impl.rs +++ b/src/internal/ws_impl.rs @@ -1,10 +1,10 @@ use flate2::read::ZlibDecoder; +use gateway::GatewayError; +use internal::prelude::*; use serde_json; use websocket::message::OwnedMessage; use websocket::sync::stream::{TcpStream, TlsStream}; use websocket::sync::Client as WsClient; -use gateway::GatewayError; -use internal::prelude::*; pub trait ReceiverExt { fn recv_json<F, T>(&mut self, decode: F) -> Result<Option<T>> |