@@ -17,8 +17,9 @@ use tokio::io::{AsyncBufRead, AsyncRead, ReadBuf};
1717/// Additionally to [`BytesCursor::next`] and [`BytesCursor::collect`],
1818/// this cursor implements:
1919/// * [`AsyncRead`] and [`AsyncBufRead`] for `tokio`-based ecosystem.
20- /// * [`futures::Stream`], [`futures::AsyncRead`] and [`futures::AsyncBufRead`]
21- /// for `futures`-based ecosystem. (requires the `futures03` feature)
20+ /// * [`futures_util::Stream`], [`futures_util::AsyncRead`] and
21+ /// [`futures_util::AsyncBufRead`] for `futures`-based ecosystem.
22+ /// (requires the `futures03` feature)
2223///
2324/// For instance, if the requested format emits each row on a newline
2425/// (e.g. `JSONEachRow`, `CSV`, `TSV`, etc.), the cursor can be read line by
@@ -167,7 +168,7 @@ impl AsyncBufRead for BytesCursor {
167168}
168169
169170#[ cfg( feature = "futures03" ) ]
170- impl futures :: AsyncRead for BytesCursor {
171+ impl futures_util :: AsyncRead for BytesCursor {
171172 #[ inline]
172173 fn poll_read (
173174 self : Pin < & mut Self > ,
@@ -181,7 +182,7 @@ impl futures::AsyncRead for BytesCursor {
181182}
182183
183184#[ cfg( feature = "futures03" ) ]
184- impl futures :: AsyncBufRead for BytesCursor {
185+ impl futures_util :: AsyncBufRead for BytesCursor {
185186 #[ inline]
186187 fn poll_fill_buf ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < IoResult < & [ u8 ] > > {
187188 AsyncBufRead :: poll_fill_buf ( self , cx)
@@ -194,7 +195,7 @@ impl futures::AsyncBufRead for BytesCursor {
194195}
195196
196197#[ cfg( feature = "futures03" ) ]
197- impl futures :: stream:: Stream for BytesCursor {
198+ impl futures_util :: stream:: Stream for BytesCursor {
198199 type Item = crate :: error:: Result < bytes:: Bytes > ;
199200
200201 #[ inline]
@@ -209,7 +210,7 @@ impl futures::stream::Stream for BytesCursor {
209210}
210211
211212#[ cfg( feature = "futures03" ) ]
212- impl futures :: stream:: FusedStream for BytesCursor {
213+ impl futures_util :: stream:: FusedStream for BytesCursor {
213214 #[ inline]
214215 fn is_terminated ( & self ) -> bool {
215216 self . bytes . is_empty ( ) && self . raw . is_terminated ( )
0 commit comments