time: fix unused mut.

This commit is contained in:
Dario Nieuwenhuis 2023-05-19 17:38:57 +02:00
parent 9f7392474b
commit df56f901de

View File

@ -64,7 +64,7 @@ impl InnerQueue {
self.queue self.queue
.iter_mut() .iter_mut()
.find(|timer| timer.waker.will_wake(waker)) .find(|timer| timer.waker.will_wake(waker))
.map(|mut timer| { .map(|timer| {
timer.at = min(timer.at, at); timer.at = min(timer.at, at);
}) })
.unwrap_or_else(|| { .unwrap_or_else(|| {