Skip to content

Commit

Permalink
fix: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerschtli committed Nov 26, 2024
1 parent 74f7b5b commit 8a5c347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/audio/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl feature::Updatable for Updater {
.map(|s| s.trim_matches(FILTER))
.collect::<Vec<_>>();

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
Expand Down

0 comments on commit 8a5c347

Please sign in to comment.