Show full hex string of hash in fmt::Debug for core::Hash
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user