]> the.earth.li Git - mqttdeck.git/commitdiff
Switch to is_empty() over len() == 0
authorJonathan McDowell <noodles@earth.li>
Sat, 26 Apr 2025 17:41:44 +0000 (18:41 +0100)
committerJonathan McDowell <noodles@earth.li>
Sat, 26 Apr 2025 17:41:44 +0000 (18:41 +0100)
Pointed out by clippy.

src/main.rs

index 00acdb19c9ea2c746cc861af1065bfc3e84ef15d..639c4dae40ca19e06f629dc6b9082e80367c3b41 100644 (file)
@@ -118,7 +118,7 @@ async fn main() {
     });
     let mut decks = list_devices(&hid);
 
-    if decks.len() == 0 {
+    if decks.is_empty() {
         println!("Failed to find Stream Deck device");
         process::exit(1);
     }