File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -198,12 +198,10 @@ impl Future {
198
198
}
199
199
}
200
200
201
- mod std_future {
202
- use core:: task:: Waker ;
203
- pub struct StdWaker ( pub Waker ) ;
204
- impl super :: FutureCallback for StdWaker {
205
- fn call ( & self ) { self . 0 . wake_by_ref ( ) }
206
- }
201
+ use core:: task:: Waker ;
202
+ struct StdWaker ( pub Waker ) ;
203
+ impl FutureCallback for StdWaker {
204
+ fn call ( & self ) { self . 0 . wake_by_ref ( ) }
207
205
}
208
206
209
207
/// (C-not exported) as Rust Futures aren't usable in language bindings.
@@ -216,7 +214,7 @@ impl<'a> StdFuture for Future {
216
214
Poll :: Ready ( ( ) )
217
215
} else {
218
216
let waker = cx. waker ( ) . clone ( ) ;
219
- state. callbacks . push ( Box :: new ( std_future :: StdWaker ( waker) ) ) ;
217
+ state. callbacks . push ( Box :: new ( StdWaker ( waker) ) ) ;
220
218
Poll :: Pending
221
219
}
222
220
}
You can’t perform that action at this time.
0 commit comments