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 21, 2024
1 parent 1797795 commit 175566f
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 @@ -75,7 +75,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 @@ -127,7 +127,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 = pin!(future);

loop {
Expand Down

0 comments on commit 175566f

Please sign in to comment.