File tree Expand file tree Collapse file tree 7 files changed +12
-3
lines changed Expand file tree Collapse file tree 7 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ cfg_unstable_default! {
2020 use crate :: future:: timeout:: TimeoutFuture ;
2121}
2222
23+ pub use core:: future:: Future as Future ;
24+
2325extension_trait ! {
2426 pub trait Future { }
2527
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ use std::pin::Pin;
1515use crate :: io;
1616use crate :: task:: { Context , Poll } ;
1717
18+ pub use futures_io:: AsyncBufRead as BufRead ;
19+
1820extension_trait ! {
1921 pub trait BufRead { }
2022
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ pub use bytes::Bytes;
2121pub use chain:: Chain ;
2222pub use take:: Take ;
2323
24+ pub use futures_io:: AsyncRead as Read ;
25+
2426extension_trait ! {
2527 pub trait Read { }
2628
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ use seek::SeekFuture;
44
55use crate :: io:: SeekFrom ;
66
7+ pub use futures_io:: AsyncSeek as Seek ;
8+
79extension_trait ! {
810 pub trait Seek { }
911
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ use write_vectored::WriteVectoredFuture;
1212
1313use crate :: io:: { self , IoSlice } ;
1414
15+ pub use futures_io:: AsyncWrite as Write ;
16+
1517extension_trait ! {
1618 pub trait Write { }
1719
Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ cfg_unstable! {
143143 mod unzip;
144144}
145145
146+ pub use futures_core:: stream:: Stream as Stream ;
147+
146148extension_trait ! {
147149 pub trait Stream { }
148150
Original file line number Diff line number Diff line change @@ -257,9 +257,6 @@ macro_rules! extension_trait {
257257 $( $body_ext: tt) *
258258 }
259259 ) => {
260- // Re-export the base trait from the futures crate.
261- pub use $base as $name;
262-
263260 // The extension trait that adds methods to any type implementing the base trait.
264261 #[ doc = $doc_ext]
265262 pub trait $ext: $name {
You can’t perform that action at this time.
0 commit comments