Skip to content

Commit

Permalink
fixing thing
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle committed Mar 8, 2024
1 parent 1ca0d80 commit d2b354a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ impl fmt::Display for Time {
if (minutes < 0) || (hours < 0) {
buf[0] = b'-';
}
crate::display_num_buf(2, 1, hours.abs() as u32, &mut buf);
crate::display_num_buf(2, 4, minutes.abs() as u32, &mut buf);
crate::display_num_buf(2, 1, hours.unsigned_abs(), &mut buf);
crate::display_num_buf(2, 4, minutes.unsigned_abs(), &mut buf);
f.write_str(std::str::from_utf8(&buf[..]).unwrap())?;
}
}
Expand Down

0 comments on commit d2b354a

Please sign in to comment.