diff --git a/src/lib.rs b/src/lib.rs index 12bf2cb..37765f2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ fn print_printable_or_dot(chunk: &[u8]) { #[inline(always)] fn print_offset(offset: usize) { - print!("{:08x} ", offset); + print!("{offset:08x} "); } #[inline(always)] @@ -24,7 +24,7 @@ fn print_data_hex(chunk: &[u8]) { if idx > 0 && idx % 8 == 0 { print!(" "); } - print!("{:02x} ", byte); + print!("{byte:02x} "); } }