aboutsummaryrefslogtreecommitdiff
path: root/src/model/error.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-27 06:42:48 +0200
committeracdenisSK <[email protected]>2017-07-27 07:30:23 +0200
commit550030264952f0e0043b63f4582bb817ef8bbf37 (patch)
treeb921e2f78fd603a5ca671623083a32806fd16090 /src/model/error.rs
parentUse a consistent indentation style (diff)
downloadserenity-550030264952f0e0043b63f4582bb817ef8bbf37.tar.xz
serenity-550030264952f0e0043b63f4582bb817ef8bbf37.zip
rustfmt
Diffstat (limited to 'src/model/error.rs')
-rw-r--r--src/model/error.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/model/error.rs b/src/model/error.rs
index eb52bd8..fa24272 100644
--- a/src/model/error.rs
+++ b/src/model/error.rs
@@ -44,7 +44,7 @@ use super::Permissions;
/// println!("Unexpected error: {:?}", why);
/// },
/// }
-/// }
+/// }
/// }
/// let token = env::var("DISCORD_BOT_TOKEN")?;
/// let mut client = Client::new(&token, Handler); client.start()?;
@@ -112,9 +112,7 @@ pub enum Error {
}
impl Display for Error {
- fn fmt(&self, f: &mut Formatter) -> FmtResult {
- f.write_str(self.description())
- }
+ fn fmt(&self, f: &mut Formatter) -> FmtResult { f.write_str(self.description()) }
}
impl StdError for Error {