This commit is contained in:
Erica Z 2024-11-01 21:39:43 +01:00
parent 5d949d4c0f
commit 35aa3e3101

View file

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