diff --git a/src/executor/mod.rs b/src/executor/mod.rs index 5025965b63..680abcc7ef 100644 --- a/src/executor/mod.rs +++ b/src/executor/mod.rs @@ -74,7 +74,7 @@ impl Wake for TaskNotify { pub(crate) fn run() { let waker = Waker::noop(); - let mut cx = Context::from_waker(&waker); + let mut cx = Context::from_waker(waker); without_interrupts(|| { async_tasks().retain_mut(|task| { @@ -126,7 +126,7 @@ where let start = now(); let waker = core::task::Waker::noop(); - let mut cx = Context::from_waker(&waker); + let mut cx = Context::from_waker(waker); let mut future = future; let mut future = unsafe { core::pin::Pin::new_unchecked(&mut future) };