diff --git a/modules/src/core/ics24_host/identifier.rs b/modules/src/core/ics24_host/identifier.rs index be1b4634a3..3b86c8b499 100644 --- a/modules/src/core/ics24_host/identifier.rs +++ b/modules/src/core/ics24_host/identifier.rs @@ -1,5 +1,5 @@ use core::convert::{From, Infallible}; -use core::fmt::{self, Display, Formatter}; +use core::fmt::{self, Debug, Display, Formatter}; use core::str::FromStr; use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; @@ -335,7 +335,7 @@ impl Default for PortId { } } -#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct ChannelId(u64); impl ChannelId { @@ -370,6 +370,12 @@ impl Display for ChannelId { } } +impl Debug for ChannelId { + fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), fmt::Error> { + f.debug_tuple("ChannelId").field(&self.to_string()).finish() + } +} + impl FromStr for ChannelId { type Err = ValidationError;