2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-06-19 04:31:33 +00:00

$cargo fmt

This commit is contained in:
k-nasa 2019-10-01 17:49:55 +09:00
parent c31861aa65
commit cc21bdf068
4 changed files with 11 additions and 9 deletions

View file

@ -40,7 +40,7 @@ where
Some(_) => {
cx.waker().wake_by_ref();
Poll::Pending
},
}
None => Poll::Ready(None),
}
}

View file

@ -40,7 +40,7 @@ where
Some(_) => {
cx.waker().wake_by_ref();
Poll::Pending
},
}
None => Poll::Ready(None),
}
}

View file

@ -38,10 +38,12 @@ where
match next {
Some(v) => match self.as_mut().predicate() {
Some(p) => if !p(&v) {
Some(p) => {
if !p(&v) {
*self.as_mut().predicate() = None;
return Poll::Ready(Some(v));
},
}
}
None => return Poll::Ready(Some(v)),
},
None => return Poll::Ready(None),