X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/6440cd74346c4b2d63d4774476e8c6113c032534..bc6fb90d7053082e7aaf261f4da8905c49e9fe01:/m17app/src/soundcard.rs?ds=sidebyside diff --git a/m17app/src/soundcard.rs b/m17app/src/soundcard.rs index b12ef88..3914632 100644 --- a/m17app/src/soundcard.rs +++ b/m17app/src/soundcard.rs @@ -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;