diff --git a/monoio/src/time/driver/wheel/level.rs b/monoio/src/time/driver/wheel/level.rs index 3d53aec1..fcc5f51b 100644 --- a/monoio/src/time/driver/wheel/level.rs +++ b/monoio/src/time/driver/wheel/level.rs @@ -135,10 +135,7 @@ impl Level { pub(crate) fn next_expiration(&self, now: u64) -> Option { // 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`.