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

2
Cargo.lock generated
View File

@@ -1671,7 +1671,7 @@ dependencies = [
[[package]]
name = "ncspot"
version = "0.1.4"
version = "0.2.0"
dependencies = [
"chrono 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.33.1 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@@ -2,7 +2,7 @@
name = "ncspot"
description = "ncurses Spotify client written in Rust using librespot, inspired by ncmpc and the likes."
exclude = ["screenshots/**"]
version = "0.1.4"
version = "0.2.0"
authors = ["Henrik Friedrichsen <henrik@affekt.org>"]
repository = "https://github.com/hrkfdn/ncspot"
keywords = ["spotify", "ncurses", "librespot"]

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(),
)),
);