File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -970,15 +970,15 @@ pub trait StreamExt: Stream {
970
970
}
971
971
972
972
/// A future that completes after the given stream has been fully processed
973
- /// into the sink, including flushing .
973
+ /// into the sink and the sink has been flushed and closed .
974
974
///
975
975
/// This future will drive the stream to keep producing items until it is
976
- /// exhausted, sending each item to the sink. It will complete once both the
977
- /// stream is exhausted and the sink has received and flushed all items.
978
- /// Note that the sink is **not** closed.
976
+ /// exhausted, sending each item to the sink. It will complete once the
977
+ /// stream is exhausted, the sink has received and flushed all items, and
978
+ /// the sink is closed.
979
979
fn forward < S > ( self , sink : S ) -> Forward < Self , S >
980
980
where
981
- S : Sink + Unpin ,
981
+ S : Sink ,
982
982
Self : Stream < Item = Result < S :: SinkItem , S :: SinkError > > + Sized ,
983
983
{
984
984
Forward :: new ( self , sink)
You can’t perform that action at this time.
0 commit comments