Skip to content

Commit 24ea739

Browse files
committed
Clippy cleanups.
I guess stable rust added some new lints.
1 parent 13b6d38 commit 24ea739

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ impl Hardware {
10631063
resets,
10641064
clocks.peripheral_clock.freq(),
10651065
2_000_000.Hz(),
1066-
&embedded_hal::spi::MODE_0,
1066+
embedded_hal::spi::MODE_0,
10671067
),
10681068
delay,
10691069
led_state: 0,
@@ -2624,9 +2624,7 @@ extern "C" fn power_control(power_mode: common::PowerMode) -> ! {
26242624
// Reboot to USB bootloader with no GPIOs and both USB interfaces
26252625
// enabled.
26262626
hal::rom_data::reset_to_usb_boot(0, 0);
2627-
loop {
2628-
core::unreachable!()
2629-
}
2627+
core::unreachable!()
26302628
}
26312629
_ => {
26322630
// Anything else causes a reset

0 commit comments

Comments
 (0)