From 35aa3e310176d8bc0da87b536323be6a6d46fae5 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Fri, 1 Nov 2024 21:39:43 +0100 Subject: [PATCH] cippy --- src/mpris/player.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpris/player.rs b/src/mpris/player.rs index 9f72ec2..e119559 100644 --- a/src/mpris/player.rs +++ b/src/mpris/player.rs @@ -53,7 +53,7 @@ impl MetadataMap { //user_rating: Some(if song.starred().is_none() { 0.0 } else { 1.0 }), ..Default::default() }) - .unwrap_or_else(Default::default) + .unwrap_or_default() } fn as_hash_map(&self) -> HashMap<&'static str, Value> {