Update src/stream/stream/flatten.rs

Co-Authored-By: Taiki Endo <te316e89@gmail.com>
pull/367/head
nasa 5 years ago committed by GitHub
parent b7b5df13aa
commit 6168952d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -109,7 +109,7 @@ where
let mut this = self.project();
loop {
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!(inner.poll_next(cx)) {
return Poll::Ready(item);
}
}

Loading…
Cancel
Save