We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 755804c commit 28ab681Copy full SHA for 28ab681
futures-util/src/stream/forward.rs
@@ -85,7 +85,7 @@ where
85
Poll::Ready(None) => {
86
try_ready!(self.as_mut().sink().as_pin_mut().expect(INVALID_POLL)
87
.poll_close(waker));
88
- let _ = self.as_mut().sink().as_pin_mut().take().unwrap();
+ self.as_mut().sink().set(None);
89
return Poll::Ready(Ok(()))
90
}
91
Poll::Pending => {
0 commit comments