From 038f792e211bef4f61b7e979c041e8f4e531f045 Mon Sep 17 00:00:00 2001 From: Jonathan Pallant Date: Fri, 19 Nov 2021 17:38:32 +0000 Subject: [PATCH] Apply clippy's suggestions. --- rp2040-hal/src/sio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/src/sio.rs b/rp2040-hal/src/sio.rs index ecd0466..4c326b2 100644 --- a/rp2040-hal/src/sio.rs +++ b/rp2040-hal/src/sio.rs @@ -122,7 +122,7 @@ impl SioFifo { /// Read from the FIFO until it is empty, throwing the contents away. pub fn drain(&mut self) { - while let Some(_) = self.read() { + while self.read().is_some() { // Spin until FIFO empty } }