Skip to content

Commit

Permalink
remove clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jul 21, 2023
1 parent 5876a29 commit a3be126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/executor/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ where
let mut counter: u16 = 0;
let start = crate::executor::network::now();
let task_notify = Arc::new(TaskNotify::new());
let waker = task_notify.clone().into();
let waker = task_notify.into();
let mut cx = Context::from_waker(&waker);
let mut future = future;
let mut future = unsafe { core::pin::Pin::new_unchecked(&mut future) };
Expand Down Expand Up @@ -288,7 +288,7 @@ where
let ticks = crate::arch::processor::get_timer_ticks();
let wakeup_time = timeout
.map(|duration| u64::try_from((start + duration).total_micros()).unwrap())
.or_else(|| Some(ticks + 1000));
.or(Some(ticks + 1000));
let network_timer = delay.map(|d| ticks + d);
let core_scheduler = core_scheduler();

Expand Down

0 comments on commit a3be126

Please sign in to comment.