Skip to content

Commit

Permalink
Minor change is displaying object data and type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrssreal committed Dec 15, 2023
1 parent 9b133a6 commit e3d47b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut stdout = std::io::stdout();

if cat_file_args.mode.print {
obj.dump_content(stdout.lock())?;
println!("{obj}");
}

if cat_file_args.mode.type_ {
obj.dump_type(stdout.lock())?;
println!("{}", obj.to_string());
}

stdout.flush()?;
Expand Down

0 comments on commit e3d47b4

Please sign in to comment.