Skip to content

Commit

Permalink
style: use Time::MAX in TimeWindow::widest (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: Rinde van Lon <[email protected]>
  • Loading branch information
chistopher and rinde authored Nov 22, 2024
1 parent b59b845 commit 757bacc
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 757bacc

Please sign in to comment.