]> code.octet-stream.net Git - m17rt/blobdiff - m17app/src/soundcard.rs
RTLSDR input via rtl_fm
[m17rt] / m17app / src / soundcard.rs
index b12ef8839a3d64f9be476e91ebae4ca63a941d39..391463208b5caaeb346a73b4e7c728710cff1a61 100644 (file)
@@ -63,10 +63,7 @@ impl Soundcard {
                 continue;
             };
             if configs
-                .find(|config| {
-                    config.channels() == 1 && config.sample_format() == SampleFormat::I16
-                })
-                .is_some()
+                .any(|config| config.channels() == 1 && config.sample_format() == SampleFormat::I16)
             {
                 let Ok(name) = d.name() else {
                     continue;
@@ -89,10 +86,7 @@ impl Soundcard {
                 continue;
             };
             if configs
-                .find(|config| {
-                    config.channels() == 1 && config.sample_format() == SampleFormat::I16
-                })
-                .is_some()
+                .any(|config| config.channels() == 1 && config.sample_format() == SampleFormat::I16)
             {
                 let Ok(name) = d.name() else {
                     continue;