diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-01-02 17:18:11 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-01-02 18:46:03 +0100 |
commit | bfe69c17b3a6912f042449720ab3b1c0ef9a6231 (patch) | |
tree | 93db3192753bfc35c1e8ffa6a7507e911929067b | |
parent | 8e15f356a4a1ddbcc9d5489cac942aab8417f666 (diff) |
Impl Display for MessageId
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | lib/domain/libimagmail/src/mid.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/domain/libimagmail/src/mid.rs b/lib/domain/libimagmail/src/mid.rs index 3d579ef1..454753b0 100644 --- a/lib/domain/libimagmail/src/mid.rs +++ b/lib/domain/libimagmail/src/mid.rs @@ -17,6 +17,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +use std::fmt::{Display, Formatter, Result as FmtResult}; + /// Helper type for handling message IDs /// /// Message IDs are used to identfy emails uniquely, so we should at least have a type for @@ -48,3 +50,10 @@ impl AsRef<str> for MessageId { &self.0 } } + +impl Display for MessageId { + fn fmt(&self, f: &mut Formatter) -> FmtResult { + self.0.fmt(f) + } +} + |