From 4f0a64e31e9a323544c1cb15b84d37bdf6cf2dd5 Mon Sep 17 00:00:00 2001 From: manorom Date: Tue, 8 Nov 2022 15:24:54 +0100 Subject: [PATCH] Derive Display Trait for MessageId type --- crates/teloxide-core/src/types/message_id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/teloxide-core/src/types/message_id.rs b/crates/teloxide-core/src/types/message_id.rs index 31cbd20c..c9c405ae 100644 --- a/crates/teloxide-core/src/types/message_id.rs +++ b/crates/teloxide-core/src/types/message_id.rs @@ -1,7 +1,7 @@ use serde::{Deserialize, Serialize}; /// A unique message identifier. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +#[derive(Clone, Copy, Debug, derive_more::Display, PartialEq, Eq, Hash, Serialize, Deserialize)] #[serde(from = "MessageIdRaw", into = "MessageIdRaw")] pub struct MessageId(pub i32);