Skip to content

Commit

Permalink
fix 2 unused errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jlo62 committed Dec 11, 2024
1 parent b6a96da commit 2473984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mpris-backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Playerctl {
let mut metadata = Err("some errro");
let icon = match &self.player {
PlayerctlDevice::Some(player) => {
metadata = player.get_metadata().or_else(|x| Err(""));
metadata = player.get_metadata().or_else(|_| Err(""));
run_single(player)?
},
PlayerctlDevice::All(players) => {
Expand All @@ -98,7 +98,7 @@ impl Playerctl {
}
};
if let Err(_) = metadata {
metadata = player.get_metadata().or_else(|x| Err(""));
metadata = player.get_metadata().or_else(|_| Err(""));
}
}
icon?
Expand Down

0 comments on commit 2473984

Please sign in to comment.