forked from mirror/async-std
Update src/stream/stream/flatten.rs
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
This commit is contained in:
parent
7ce721f562
commit
b7b5df13aa
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ where
|
||||||
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
|
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
|
||||||
let mut this = self.project();
|
let mut this = self.project();
|
||||||
loop {
|
loop {
|
||||||
if let Some(inner) = this.frontiter {
|
if let Some(inner) = this.frontiter.as_mut().as_pin_mut() {
|
||||||
if let item @ Some(_) = futures_core::ready!(Pin::new(inner).poll_next(cx)) {
|
if let item @ Some(_) = futures_core::ready!(Pin::new(inner).poll_next(cx)) {
|
||||||
return Poll::Ready(item);
|
return Poll::Ready(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue