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 {
198198 }
199199}
200200
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 ( ) }
207205}
208206
209207/// (C-not exported) as Rust Futures aren't usable in language bindings.
@@ -216,7 +214,7 @@ impl<'a> StdFuture for Future {
216214 Poll :: Ready ( ( ) )
217215 } else {
218216 let waker = cx. waker ( ) . clone ( ) ;
219- state. callbacks . push ( Box :: new ( std_future :: StdWaker ( waker) ) ) ;
217+ state. callbacks . push ( Box :: new ( StdWaker ( waker) ) ) ;
220218 Poll :: Pending
221219 }
222220 }
You can’t perform that action at this time.
0 commit comments