Skip to content

Commit

Permalink
Minor output improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vstroebel committed Feb 22, 2022
1 parent 87af084 commit 21b3e4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Display for JfifError {
use JfifError::*;
match self {
JfifMarkerNotFound => write!(f, "Not a JFIF file"),
InvalidMarker(value) => write!(f, "Invalid marker: {:X}", value),
InvalidMarker(value) => write!(f, "Invalid marker: 0x{:X}", value),
InvalidMarkerLength(length) => write!(f, "Invalid length for marker: {}", length),
IoError(err) => err.fmt(f),
}
Expand Down
2 changes: 1 addition & 1 deletion src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ impl Handler for TextFormat {
if self.verbose {
print!("0x{:X}: ", position);
}
println!("Unknown(0x{:X}):{}", marker, data.len());
println!("Unknown(0x{:X}): Length {}", marker, data.len());
}
}

0 comments on commit 21b3e4b

Please sign in to comment.