File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
futures-util/src/stream/stream Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- use crate :: stream:: Fuse ;
1+ use crate :: stream:: { Fuse , StreamExt } ;
22use alloc:: vec:: Vec ;
33use core:: pin:: Pin ;
44use futures_core:: stream:: { FusedStream , Stream } ;
@@ -22,7 +22,7 @@ impl<St: Stream> ReadyChunks<St> {
2222 pub ( super ) fn new ( stream : St , capacity : usize ) -> Self {
2323 assert ! ( capacity > 0 ) ;
2424
25- Self { stream : super :: Fuse :: new ( stream) , cap : capacity }
25+ Self { stream : stream. fuse ( ) , cap : capacity }
2626 }
2727
2828 delegate_access_inner ! ( stream, St , ( . ) ) ;
@@ -75,7 +75,7 @@ impl<St: Stream> Stream for ReadyChunks<St> {
7575 }
7676}
7777
78- impl < St : FusedStream > FusedStream for ReadyChunks < St > {
78+ impl < St : Stream > FusedStream for ReadyChunks < St > {
7979 fn is_terminated ( & self ) -> bool {
8080 self . stream . is_terminated ( )
8181 }
You can’t perform that action at this time.
0 commit comments