diff --git a/src/tools/format.rs b/src/tools/format.rs index 58a153b2..aa67ea38 100644 --- a/src/tools/format.rs +++ b/src/tools/format.rs @@ -80,6 +80,11 @@ impl From for HumanByte { HumanByte { b: v } } } +impl From for HumanByte { + fn from(v: u64) -> Self { + HumanByte { b: v as usize } + } +} #[test] fn correct_byte_convert() {