diff options
| author | acdenisSK <[email protected]> | 2017-07-27 06:42:48 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-27 07:30:23 +0200 |
| commit | 550030264952f0e0043b63f4582bb817ef8bbf37 (patch) | |
| tree | b921e2f78fd603a5ca671623083a32806fd16090 /src/model/error.rs | |
| parent | Use a consistent indentation style (diff) | |
| download | serenity-550030264952f0e0043b63f4582bb817ef8bbf37.tar.xz serenity-550030264952f0e0043b63f4582bb817ef8bbf37.zip | |
rustfmt
Diffstat (limited to 'src/model/error.rs')
| -rw-r--r-- | src/model/error.rs | 6 |
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 { |