Skip to content

Commit

Permalink
use Time::MAX in TimeWindow::widest
Browse files Browse the repository at this point in the history
  • Loading branch information
chistopher committed Nov 21, 2024
1 parent 231ad2d commit ecf00ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit ecf00ac

Please sign in to comment.