diff --git a/time/src/serde/mod.rs b/time/src/serde/mod.rs index aa6cab714..653194cec 100644 --- a/time/src/serde/mod.rs +++ b/time/src/serde/mod.rs @@ -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(),