fix output when uneven input length
continuous-integration/drone/push Build is passing Details

This commit is contained in:
jpk 2022-12-15 13:11:37 +01:00
parent 42f2d4fcbc
commit 8a72ef7e21
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ fn dump_to_hex(bytes: &mut [u8]) -> String {
if c.len() == 2 {
format!("{}{}", map_u8_to_color(c[0]), map_u8_to_color(c[1]))
} else {
map_u8_to_color(c[0])
format!("{} ", map_u8_to_color(c[0]))
}
})
.collect();