From bfe69c17b3a6912f042449720ab3b1c0ef9a6231 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 2 Jan 2020 17:18:11 +0100 Subject: Impl Display for MessageId Signed-off-by: Matthias Beyer --- lib/domain/libimagmail/src/mid.rs | 9 +++++++++ 1 file changed, 9 insertions(+) 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 for MessageId { &self.0 } } + +impl Display for MessageId { + fn fmt(&self, f: &mut Formatter) -> FmtResult { + self.0.fmt(f) + } +} + -- cgit v1.2.3