mirror of https://github.com/rust-lang/async-book
Compare commits
2 Commits
6360806ade
...
f4074aee6e
Author | SHA1 | Date |
---|---|---|
Eric Holk | f4074aee6e | |
Bruno Paulino | bac695815a |
|
@ -90,7 +90,7 @@ impl Executor {
|
|||
if let Some(mut future) = future_slot.take() {
|
||||
// Create a `LocalWaker` from the task itself
|
||||
let waker = waker_ref(&task);
|
||||
let context = &mut Context::from_waker(&*waker);
|
||||
let context = &mut Context::from_waker(&waker);
|
||||
// `BoxFuture<T>` is a type alias for
|
||||
// `Pin<Box<dyn Future<Output = T> + Send + 'static>>`.
|
||||
// We can get a `Pin<&mut dyn Future + Send + 'static>`
|
||||
|
|
Loading…
Reference in New Issue