From b58dc3dc449b0b17232a89bf2627aef3dd263bdb Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Tue, 16 Jan 2024 15:58:40 +0100 Subject: [PATCH] fix small formatting issue in hedu --- members/libpt-hedu/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/members/libpt-hedu/src/lib.rs b/members/libpt-hedu/src/lib.rs index 63f9afd..6c46ae4 100644 --- a/members/libpt-hedu/src/lib.rs +++ b/members/libpt-hedu/src/lib.rs @@ -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!(" ");