Skip to content

Commit

Permalink
fix: Remove clippy warning from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Jul 15, 2024
1 parent 79340e7 commit 77b5b3b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/src/bin/sleep_timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() -> ! {
let system = SystemControl::new(peripherals.SYSTEM);
let clocks = ClockControl::boot_defaults(system.clock_control).freeze();

let mut delay = Delay::new(&clocks);
let delay = Delay::new(&clocks);
let mut rtc = Rtc::new(peripherals.LPWR, None);

println!("up and runnning!");
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/sleep_timer_ext0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() -> ! {
let wake_reason = get_wakeup_cause();
println!("wake reason: {:?}", wake_reason);

let mut delay = Delay::new(&clocks);
let delay = Delay::new(&clocks);

let timer = TimerWakeupSource::new(Duration::from_secs(30));
let ext0 = Ext0WakeupSource::new(&mut ext0_pin, WakeupLevel::High);
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/sleep_timer_ext1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn main() -> ! {
let wake_reason = get_wakeup_cause();
println!("wake reason: {:?}", wake_reason);

let mut delay = Delay::new(&clocks);
let delay = Delay::new(&clocks);

let timer = TimerWakeupSource::new(Duration::from_secs(30));
let mut wakeup_pins: [&mut dyn RtcPin; 2] = [&mut pin_0, &mut pin_2];
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/sleep_timer_lpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn main() -> ! {
let wake_reason = get_wakeup_cause();
println!("wake reason: {:?}", wake_reason);

let mut delay = Delay::new(&clocks);
let delay = Delay::new(&clocks);
let timer = TimerWakeupSource::new(Duration::from_secs(10));

let wakeup_pins: &mut [(&mut dyn RtcPinWithResistors, WakeupLevel)] = &mut [
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/sleep_timer_rtcio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() -> ! {
let wake_reason = get_wakeup_cause();
println!("wake reason: {:?}", wake_reason);

let mut delay = Delay::new(&clocks);
let delay = Delay::new(&clocks);
let timer = TimerWakeupSource::new(Duration::from_secs(10));

#[cfg(feature = "esp32c3")]
Expand Down

0 comments on commit 77b5b3b

Please sign in to comment.