From e596d040cd07f8df130109befcdd44a726d49045 Mon Sep 17 00:00:00 2001 From: Jan Srzednicki Date: Wed, 28 Aug 2024 12:22:57 +0200 Subject: [PATCH] drop stale comment --- time/src/serde/mod.rs | 2 -- 1 file changed, 2 deletions(-) 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(),