chore: fix clippy lints 2024-12-06 (#10138)

This commit is contained in:
Conrad Ludgate
2024-12-16 15:33:21 +00:00
committed by GitHub
parent c5e3314c6e
commit 6565fd4056
30 changed files with 58 additions and 68 deletions

View File

@@ -91,7 +91,7 @@ impl Timing {
/// Return true if there is a ready event.
fn is_event_ready(&self, queue: &mut BinaryHeap<Pending>) -> bool {
queue.peek().map_or(false, |x| x.time <= self.now())
queue.peek().is_some_and(|x| x.time <= self.now())
}
/// Clear all pending events.