From 0d0d7baceac2361f7d596a4ded165bae78fe5460 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Tue, 31 Jan 2023 19:55:16 +0100 Subject: [PATCH] clippy: inline variables into format string --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} "); } }