aboutsummaryrefslogtreecommitdiff
path: root/src/model/user.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/user.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/user.rs')
-rw-r--r--src/model/user.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index a214b3d..bc22957 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -769,10 +769,6 @@ impl<'a> From<&'a User> for UserId {
fn from(user: &User) -> UserId { user.id }
}
-impl fmt::Display for UserId {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fmt::Display::fmt(&self.0, f) }
-}
-
#[cfg(feature = "model")]
fn avatar_url(user_id: UserId, hash: Option<&String>) -> Option<String> {
hash.map(|hash| {