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/gateway/mod.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/gateway/mod.rs')
| -rw-r--r-- | src/gateway/mod.rs | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gateway/mod.rs b/src/gateway/mod.rs index c4748a0..ffacba7 100644 --- a/src/gateway/mod.rs +++ b/src/gateway/mod.rs @@ -53,16 +53,22 @@ mod error; mod shard; mod ws_client_ext; -pub use self::error::Error as GatewayError; -pub use self::shard::Shard; -pub use self::ws_client_ext::WebSocketGatewayClientExt; +pub use self::{ + error::Error as GatewayError, + shard::Shard, + ws_client_ext::WebSocketGatewayClientExt +}; -use model::gateway::Game; -use model::user::OnlineStatus; +use model::{ + gateway::Game, + user::OnlineStatus +}; use serde_json::Value; use std::fmt::{Display, Formatter, Result as FmtResult}; -use websocket::sync::client::Client; -use websocket::sync::stream::{TcpStream, TlsStream}; +use websocket::sync::{ + client::Client, + stream::{TcpStream, TlsStream} +}; #[cfg(feature = "client")] use client::bridge::gateway::ShardClientMessage; |