mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
Apply clippy's suggestions.
This commit is contained in:
parent
68014469dd
commit
038f792e21
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue