Good ol' clippy.

This commit is contained in:
Jonathan Pallant (42 Technology) 2021-09-21 12:42:34 +01:00
parent b89e728e9c
commit 25d87b838b

View file

@ -179,7 +179,7 @@ unsafe fn USBCTRL_IRQ() {
let serial = USB_SERIAL.as_mut().unwrap(); let serial = USB_SERIAL.as_mut().unwrap();
// Say hello exactly once on start-up // Say hello exactly once on start-up
if SAID_HELLO.load(Ordering::Relaxed) == false { if !SAID_HELLO.load(Ordering::Relaxed) {
SAID_HELLO.store(true, Ordering::Relaxed); SAID_HELLO.store(true, Ordering::Relaxed);
let _ = serial.write(b"Hello, World!\r\n"); let _ = serial.write(b"Hello, World!\r\n");
} }