Skip to content

Commit

Permalink
fix(executor): clippy::needless_borrow
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Feb 19, 2024
1 parent 37205fc commit bdbc36f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down Expand Up @@ -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) };

Expand Down

0 comments on commit bdbc36f

Please sign in to comment.