File tree 3 files changed +17
-12
lines changed
3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ cfg_unstable_default! {
21
21
}
22
22
23
23
extension_trait ! {
24
- use std :: pin:: Pin ;
25
- use std :: ops:: { Deref , DerefMut } ;
24
+ use core :: pin:: Pin ;
25
+ use core :: ops:: { Deref , DerefMut } ;
26
26
27
27
use crate :: task:: { Context , Poll } ;
28
28
@@ -136,7 +136,7 @@ extension_trait! {
136
136
137
137
[`Future`]: ../future/trait.Future.html
138
138
"# ]
139
- pub trait FutureExt : std :: future:: Future {
139
+ pub trait FutureExt : core :: future:: Future {
140
140
/// Returns a Future that delays execution for a specified time.
141
141
///
142
142
/// # Examples
Original file line number Diff line number Diff line change 46
46
//! [`Future::race`]: trait.Future.html#method.race
47
47
//! [`Future::try_race`]: trait.Future.html#method.try_race
48
48
49
- pub use future:: Future ;
50
- pub use pending:: pending;
51
- pub use poll_fn:: poll_fn;
52
- pub use ready:: ready;
49
+ cfg_no_std ! {
50
+ pub use future:: Future ;
51
+ pub ( crate ) mod future;
52
+ }
53
+
54
+ cfg_std ! {
55
+ pub use pending:: pending;
56
+ pub use poll_fn:: poll_fn;
57
+ pub use ready:: ready;
53
58
54
- pub ( crate ) mod future ;
55
- mod pending ;
56
- mod poll_fn ;
57
- mod ready ;
59
+ mod pending ;
60
+ mod poll_fn ;
61
+ mod ready ;
62
+ }
58
63
59
64
cfg_default ! {
60
65
pub use timeout:: { timeout, TimeoutError } ;
Original file line number Diff line number Diff line change @@ -243,10 +243,10 @@ mod macros;
243
243
244
244
cfg_no_std ! {
245
245
pub mod task;
246
+ pub mod future;
246
247
}
247
248
248
249
cfg_std ! {
249
- pub mod future;
250
250
pub mod io;
251
251
pub mod os;
252
252
pub mod prelude;
You can’t perform that action at this time.
0 commit comments