Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
loongs-zhang committed Nov 24, 2024
1 parent 9b3db73 commit 4585757
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions monoio/src/time/driver/wheel/level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ impl Level {
pub(crate) fn next_expiration(&self, now: u64) -> Option<Expiration> {
// Use the `occupied` bit field to get the index of the next slot that
// needs to be processed.
let slot = match self.next_occupied_slot(now) {
Some(slot) => slot,
None => return None,
};
let slot = self.next_occupied_slot(now)?;

// From the slot index, calculate the `Instant` at which it needs to be
// processed. This value *must* be in the future with respect to `now`.
Expand Down

0 comments on commit 4585757

Please sign in to comment.