clippy: inline variables into format string
This commit is contained in:
parent
c92e078531
commit
0d0d7bacea
@ -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} ");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user