mirror of https://github.com/rust-lang/async-book
Remove unecessary pointer dereferencing
This commit is contained in:
parent
6360806ade
commit
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