Skip to content

Commit

Permalink
Fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Mar 29, 2024
1 parent 6da810c commit d74f5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqo-common/src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl<T> Timer<T> {
pub fn take_next(&mut self, until: Instant) -> Option<T> {
let last_bucket = self.cursor + self.delta(until);

let range = if last_bucket <= self.items.len() {
let range = if last_bucket < self.items.len() {
// Simple case, no wrap around.
#[allow(clippy::range_plus_one)] // non-inclusive range to match with type below
(self.cursor..(last_bucket + 1)).chain(0..0) // additional empty range to match with
Expand Down

0 comments on commit d74f5aa

Please sign in to comment.