diff --git a/src/common.rs b/src/common.rs index 69871d09bb78f4658fcb7651b153150e6d4641cd..21af2700159a7b95ee62aa762d24275b6aadf333 100644 --- a/src/common.rs +++ b/src/common.rs @@ -50,7 +50,7 @@ pub struct U32Stream { )] #[repr(transparent)] pub struct PortId(Id); -#[derive(Default, Debug, Clone, Eq, PartialEq, Ord, PartialOrd)] +#[derive(Default, Clone, Eq, PartialEq, Ord, PartialOrd)] pub struct Payload(Arc>); #[derive( Debug, Eq, PartialEq, Clone, Hash, Copy, Ord, PartialOrd, serde::Serialize, serde::Deserialize, @@ -174,6 +174,11 @@ impl Debug for ProtoComponentId { write!(f, "pcID({}'{})", self.0.connector_id, self.0.u32_suffix) } } +impl Debug for Payload { + fn fmt(&self, f: &mut Formatter) -> std::fmt::Result { + write!(f, "Payload{:x?}", self.as_slice()) + } +} impl std::ops::Not for Polarity { type Output = Self; fn not(self) -> Self::Output {