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> {