From 2473984d007d028cd214e722bee60c5545437533 Mon Sep 17 00:00:00 2001 From: Jan Luca Oster Date: Sat, 19 Oct 2024 12:05:16 +0200 Subject: [PATCH] fix 2 unused errors --- src/mpris-backend/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mpris-backend/mod.rs b/src/mpris-backend/mod.rs index fbef544..c60025c 100644 --- a/src/mpris-backend/mod.rs +++ b/src/mpris-backend/mod.rs @@ -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) => { @@ -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?