Update src/stream/stream/flatten.rs

Co-Authored-By: Taiki Endo <te316e89@gmail.com>
This commit is contained in:
nasa 2019-10-26 01:43:14 +09:00 committed by GitHub
parent bf3508ffb2
commit 8932cecec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ where
match futures_core::ready!(this.stream.as_mut().poll_next(cx)) { match futures_core::ready!(this.stream.as_mut().poll_next(cx)) {
None => return Poll::Ready(None), None => return Poll::Ready(None),
Some(inner) => *this.frontiter = Some(inner.into_stream()), Some(inner) => this.frontiter.set(Some(inner.into_stream())),
} }
} }
} }