Apply clippy's suggestions.

This commit is contained in:
Jonathan Pallant 2021-11-19 17:38:32 +00:00
parent 68014469dd
commit 038f792e21

View file

@ -122,7 +122,7 @@ impl SioFifo {
/// Read from the FIFO until it is empty, throwing the contents away. /// Read from the FIFO until it is empty, throwing the contents away.
pub fn drain(&mut self) { pub fn drain(&mut self) {
while let Some(_) = self.read() { while self.read().is_some() {
// Spin until FIFO empty // Spin until FIFO empty
} }
} }