diff options
| author | Illia <[email protected]> | 2016-12-06 23:51:42 +0200 |
|---|---|---|
| committer | zeyla <[email protected]> | 2016-12-06 13:51:42 -0800 |
| commit | 13de5c2e50410c3a68435dc774537b490bb7115c (patch) | |
| tree | 798c633e9e06e520083b29fa4417f089f476d0e0 /src/model/mod.rs | |
| parent | Fix changelog header (diff) | |
| download | serenity-13de5c2e50410c3a68435dc774537b490bb7115c.tar.xz serenity-13de5c2e50410c3a68435dc774537b490bb7115c.zip | |
Improve Mentions, fix MessageBuilder
Remove the obsolete Mention struct as well as related methods, improve
the way mentioning works, fix the message builder, add a test for all
this.
Diffstat (limited to 'src/model/mod.rs')
| -rw-r--r-- | src/model/mod.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/model/mod.rs b/src/model/mod.rs index 7cb0dfb..b5eda3c 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -49,7 +49,6 @@ pub use self::webhook::*; use self::utils::*; use std::collections::HashMap; -use std::fmt; use time::Timespec; use ::internal::prelude::*; use ::utils::{Colour, decode_array}; @@ -90,12 +89,6 @@ macro_rules! id { } } - impl fmt::Display for $name { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{}", self.0) - } - } - impl From<u64> for $name { fn from(id_as_u64: u64) -> $name { $name(id_as_u64) |