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:
parent
c31861aa65
commit
cc21bdf068
4 changed files with 11 additions and 9 deletions
|
@ -40,7 +40,7 @@ where
|
|||
Some(_) => {
|
||||
cx.waker().wake_by_ref();
|
||||
Poll::Pending
|
||||
},
|
||||
}
|
||||
None => Poll::Ready(None),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ where
|
|||
Some(_) => {
|
||||
cx.waker().wake_by_ref();
|
||||
Poll::Pending
|
||||
},
|
||||
}
|
||||
None => Poll::Ready(None),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue