Skip to content

Commit

Permalink
drop stale comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vriesk committed Aug 28, 2024
1 parent 49760bd commit e596d04
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions time/src/serde/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ impl Serialize for Duration {
#[cfg(feature = "serde-human-readable")]
if serializer.is_human_readable() {
return serializer.collect_str(&format_args!(
// Simply extracting sign and then calling `self.whole_seconds().abs()` will
// cause overflow on `i64::MIN` seconds.
"{}{}.{:>09}",
if self.is_negative() { "-" } else { "" },
self.whole_seconds().unsigned_abs(),
Expand Down

0 comments on commit e596d04

Please sign in to comment.