diff --git a/core/src/core/hash.rs b/core/src/core/hash.rs index 62170624..8c38f9d7 100644 --- a/core/src/core/hash.rs +++ b/core/src/core/hash.rs @@ -38,10 +38,7 @@ pub struct Hash([u8; 32]); impl fmt::Debug for Hash { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - for i in self.0[..4].iter() { - write!(f, "{:02x}", i)?; - } - Ok(()) + write!(f, "{}", self.to_hex()) } }