From 757bacca8aa4adb9702ec27d507b457d64b8e6c0 Mon Sep 17 00:00:00 2001 From: Christopher Weyand Date: Fri, 22 Nov 2024 11:27:25 +0100 Subject: [PATCH] style: use Time::MAX in TimeWindow::widest (#83) Co-authored-by: Rinde van Lon --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f65afbc..83ea4fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -528,10 +528,10 @@ impl TimeWindow { } #[must_use] - pub fn widest() -> Self { + pub const fn widest() -> Self { TimeWindow { start: Time::EPOCH, - end: Time::EPOCH + Duration::MAX, + end: Time::MAX, } }