diff --git a/src/features/audio/updater.rs b/src/features/audio/updater.rs index 460728e..d12d7aa 100644 --- a/src/features/audio/updater.rs +++ b/src/features/audio/updater.rs @@ -48,7 +48,7 @@ impl feature::Updatable for Updater { .map(|s| s.trim_matches(FILTER)) .collect::>(); - if last.get(1).map_or(false, |muted| *muted == "off") { + if last.get(1).is_some_and(|muted| *muted == "off") { self.data.update_mute(); } else { let volume = last