We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f273d3b commit e981716Copy full SHA for e981716
futures-util/src/future/future/shared.rs
@@ -313,10 +313,8 @@ where
313
// Wake all tasks and drop the slab
314
let mut wakers_guard = inner.notifier.wakers.lock().unwrap();
315
let mut wakers = wakers_guard.take().unwrap();
316
- for opt_waker in wakers.drain() {
317
- if let Some(waker) = opt_waker {
318
- waker.wake();
319
- }
+ for waker in wakers.drain().flatten() {
+ waker.wake();
320
}
321
322
drop(_reset); // Make borrow checker happy
0 commit comments