bump to version 0.2.0

This commit is contained in:
Henrik Friedrichsen
2020-07-17 23:49:47 +02:00
parent 628f131085
commit f0c42afc7d
3 changed files with 4 additions and 12 deletions

View File

@@ -34,13 +34,7 @@ fn get_metadata(playable: Option<Playable>) -> Metadata {
hm.insert(
"mpris:trackid".to_string(),
Variant(Box::new(
playable
.map(|t| {
t.uri()
})
.unwrap_or_default(),
)),
Variant(Box::new(playable.map(|t| t.uri()).unwrap_or_default())),
);
hm.insert(
"mpris:length".to_string(),
@@ -117,9 +111,7 @@ fn get_metadata(playable: Option<Playable>) -> Metadata {
"xesam:url".to_string(),
Variant(Box::new(
playable
.map(|t| {
t.share_url().unwrap_or_default()
})
.map(|t| t.share_url().unwrap_or_default())
.unwrap_or_default(),
)),
);