diff options
| author | Austin Hellyer <[email protected]> | 2016-12-17 11:06:23 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-12-17 11:06:23 -0800 |
| commit | 933ee8914509e52c5119ced9f5d9d8f9644cfa63 (patch) | |
| tree | 6455269b1e763e74e8273613afce5fe14b69789e /src/model | |
| parent | Remove cache feature dependency for framework (diff) | |
| download | serenity-933ee8914509e52c5119ced9f5d9d8f9644cfa63.tar.xz serenity-933ee8914509e52c5119ced9f5d9d8f9644cfa63.zip | |
Make Id displays format u64 instead of a mention
Instead of mentioning the channel, role, or user on an Id display
format, format its inner u64 instead. Instead, use `Id::mention()` to
accomplish the equivilant.
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/id.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/id.rs b/src/model/id.rs index 0d337fb..04c15f7 100644 --- a/src/model/id.rs +++ b/src/model/id.rs @@ -203,19 +203,19 @@ impl From<User> for UserId { impl fmt::Display for UserId { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fmt::Display::fmt(&self.mention(), f) + fmt::Display::fmt(&self.0, f) } } impl fmt::Display for RoleId { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fmt::Display::fmt(&self.mention(), f) + fmt::Display::fmt(&self.0, f) } } impl fmt::Display for ChannelId { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fmt::Display::fmt(&self.mention(), f) + fmt::Display::fmt(&self.0, f) } } |