From 36dba8ff6278dc6cc00e29ff88cfd497b2fbf6ab Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Tue, 18 Jun 2024 15:28:10 -0400 Subject: [PATCH] Address clippy warnings in examples --- examples/rtic_spi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rtic_spi.rs b/examples/rtic_spi.rs index 3629dc6e..13e619d9 100644 --- a/examples/rtic_spi.rs +++ b/examples/rtic_spi.rs @@ -59,7 +59,7 @@ mod app { assert!(spi.fifo_status().rxcount == 2); - while let Some(_) = spi.read_data() {} + while spi.read_data().is_some() {} } } }