Skip to content

Commit b7b5df1

Browse files
k-nasataiki-e
andauthored
Update src/stream/stream/flatten.rs
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
1 parent 7ce721f commit b7b5df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream/stream/flatten.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ where
108108
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
109109
let mut this = self.project();
110110
loop {
111-
if let Some(inner) = this.frontiter {
111+
if let Some(inner) = this.frontiter.as_mut().as_pin_mut() {
112112
if let item @ Some(_) = futures_core::ready!(Pin::new(inner).poll_next(cx)) {
113113
return Poll::Ready(item);
114114
}

0 commit comments

Comments
 (0)