Skip to content

Commit

Permalink
Update rustc version
Browse files Browse the repository at this point in the history
Signature of Vec::is_sorted_by has changed.
  • Loading branch information
Thomasdezeeuw committed Feb 2, 2024
1 parent 135693a commit 2565cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rt/src/timers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ impl Timers {
// needs to be the last. So we reverse the order, which ensures the list
// is sorted again.
timers.reverse();
debug_assert!(timers.is_sorted_by(|t1, t2| Some(t1.deadline.cmp(&t2.deadline))));
debug_assert!(timers.is_sorted_by(|t1, t2| t1.deadline <= t2.deadline));

true
}
Expand Down

0 comments on commit 2565cd1

Please sign in to comment.