Skip to content

Commit 633c7f1

Browse files
committed
Fix StreamExt::forward impl by calling poll_flush()
1 parent ebbc6be commit 633c7f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

futures-util/src/stream/forward.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ where
3939
Forward {
4040
sink: Some(sink),
4141
stream: stream.fuse(),
42-
buffered_item: None,
42+
buffered_item: None,
4343
}
4444
}
4545

@@ -90,7 +90,7 @@ where
9090
Poll::Ready(Some(Err(e))) => return Poll::Ready(Err(e)),
9191
Poll::Ready(None) => {
9292
try_ready!(self.as_mut().sink().as_pin_mut().expect(INVALID_POLL)
93-
.poll_close(lw));
93+
.poll_flush(lw));
9494
return Poll::Ready(Ok(self.as_mut().sink().take().unwrap()))
9595
}
9696
Poll::Pending => {

0 commit comments

Comments
 (0)