Fix printing hashes with leading zeroes
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
Closes #179
This commit is contained in:
parent
9ad9d21402
commit
a47167b735
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ impl fmt::LowerHex for Murmur64 {
|
|||
|
||||
impl fmt::Display for Murmur64 {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fmt::UpperHex::fmt(&self.0, f)
|
||||
write!(f, "{:016X}", self)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ impl fmt::UpperHex for Murmur32 {
|
|||
|
||||
impl fmt::Display for Murmur32 {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fmt::UpperHex::fmt(&self.0, f)
|
||||
write!(f, "{:08X}", self)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue