fix small formatting issue in hedu

This commit is contained in:
Christoph J. Scherr 2024-01-16 15:58:40 +01:00
parent 747c3e6eac
commit b58dc3dc44
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@
//! This crate is currently empty.
use anyhow::{bail, Result};
use libpt_log::error;
use libpt_log::{error, trace};
use std::io::{prelude::*, BufReader};
const BYTES_PER_LINE: usize = 16;
@ -41,6 +41,9 @@ where
}
print!("{:02X} ", buf[i]);
}
if len == BYTES_PER_LINE / 2 {
print!(" ")
}
for i in 0..(BYTES_PER_LINE - len) {
if i as usize % BYTES_PER_LINE == BYTES_PER_LINE / 2 {
print!(" ");