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/error.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/error.rs')
| -rw-r--r-- | src/error.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/error.rs b/src/error.rs index 489d7f5..fc0ab2c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,10 +1,16 @@ use internal::prelude::*; use model::ModelError; use serde_json::Error as JsonError; -use std::error::Error as StdError; -use std::fmt::{self, Display, Error as FormatError}; -use std::io::Error as IoError; -use std::num::ParseIntError; +use std::{ + error::Error as StdError, + fmt::{ + self, + Display, + Error as FormatError + }, + io::Error as IoError, + num::ParseIntError +}; #[cfg(feature = "hyper")] use hyper::Error as HyperError; |