aboutsummaryrefslogtreecommitdiff
path: root/src/model/guild/role.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-09-24 22:49:54 +0200
committeracdenisSK <[email protected]>2017-09-24 22:49:54 +0200
commit47ea8f79b4e980e38fb337b2f3cefc5c7d92fb33 (patch)
treeda1bd72cbeba1fd5e7bffe61625cb589563373e7 /src/model/guild/role.rs
parentRevamp errors in `Args` and commands (diff)
downloadserenity-47ea8f79b4e980e38fb337b2f3cefc5c7d92fb33.tar.xz
serenity-47ea8f79b4e980e38fb337b2f3cefc5c7d92fb33.zip
Refactor display impls for ids
Diffstat (limited to 'src/model/guild/role.rs')
-rw-r--r--src/model/guild/role.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/model/guild/role.rs b/src/model/guild/role.rs
index e097311..7ac7019 100644
--- a/src/model/guild/role.rs
+++ b/src/model/guild/role.rs
@@ -1,5 +1,4 @@
use std::cmp::Ordering;
-use std::fmt::{Display, Formatter, Result as FmtResult};
use model::*;
#[cfg(all(feature = "cache", feature = "model"))]
@@ -187,10 +186,6 @@ impl RoleId {
}
}
-impl Display for RoleId {
- fn fmt(&self, f: &mut Formatter) -> FmtResult { Display::fmt(&self.0, f) }
-}
-
impl From<Role> for RoleId {
/// Gets the Id of a role.
fn from(role: Role) -> RoleId { role.id }