From f0c42afc7d6edc9bbd381bdc065b3b830fdbf2fa Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Fri, 17 Jul 2020 23:49:47 +0200 Subject: [PATCH] bump to version 0.2.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/mpris.rs | 12 ++---------- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9217c63..9b9fe52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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)", diff --git a/Cargo.toml b/Cargo.toml index 355db69..f2a8810 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] repository = "https://github.com/hrkfdn/ncspot" keywords = ["spotify", "ncurses", "librespot"] diff --git a/src/mpris.rs b/src/mpris.rs index 52a1187..18f59b2 100644 --- a/src/mpris.rs +++ b/src/mpris.rs @@ -34,13 +34,7 @@ fn get_metadata(playable: Option) -> 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) -> 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(), )), );