1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 19:47:43 +02:00

Refactor LocalWaker (#224)

This commit is contained in:
Juan Aguilar
2020-12-13 20:26:57 +01:00
committed by GitHub
parent 049795662f
commit 02a902068f
7 changed files with 21 additions and 16 deletions

View File

@ -333,7 +333,7 @@ impl Future for CleanupPending {
let mut pending = cell.borrow_mut();
let mut i = 0;
while i != pending.len() {
if let Poll::Ready(_) = Pin::new(&mut pending[i]).poll(cx) {
if Pin::new(&mut pending[i]).poll(cx).is_ready() {
pending.remove(i);
} else {
i += 1;