Skip to content

Commit

Permalink
Make clippy shut up
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed May 31, 2024
1 parent 586a04b commit f8fb5f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esp-wifi/src/timer/riscv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn setup_timer(systimer: TimeBase) -> Result<(), esp_hal::timer::Error> {
// make sure the scheduling won't start before everything is setup
riscv::interrupt::disable();

let mut alarm0 = systimer.into_periodic();
let alarm0 = systimer.into_periodic();
alarm0.set_period(TIMESLICE_FREQUENCY.into_duration());
alarm0.clear_interrupt();
alarm0.enable_interrupt(true);
Expand Down Expand Up @@ -83,8 +83,8 @@ extern "C" fn FROM_CPU_INTR3(trap_frame: &mut TrapFrame) {
}

critical_section::with(|cs| {
let mut alarm0 = ALARM0.borrow_ref_mut(cs);
let alarm0 = unwrap!(alarm0.as_mut());
let alarm0 = ALARM0.borrow_ref(cs);
let alarm0 = unwrap!(alarm0.as_ref());

alarm0.set_period(TIMESLICE_FREQUENCY.into_duration());
alarm0.clear_interrupt();
Expand Down

0 comments on commit f8fb5f9

Please sign in to comment.