mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
Show full hex string of hash in fmt::Debug for core::Hash
This commit is contained in:
parent
faff529260
commit
bc7b701de3
1 changed files with 1 additions and 4 deletions
|
@ -38,10 +38,7 @@ pub struct Hash([u8; 32]);
|
||||||
|
|
||||||
impl fmt::Debug for Hash {
|
impl fmt::Debug for Hash {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
for i in self.0[..4].iter() {
|
write!(f, "{}", self.to_hex())
|
||||||
write!(f, "{:02x}", i)?;
|
|
||||||
}
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue