From 8fb854dea680eecdcf9e2e320f40db9eeef57391 Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Mon, 10 May 2021 22:18:03 +0200 Subject: [PATCH] Cargo format --- src/spotify.rs | 1 - src/ui/statusbar.rs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spotify.rs b/src/spotify.rs index c9c24f0..559d666 100644 --- a/src/spotify.rs +++ b/src/spotify.rs @@ -144,7 +144,6 @@ impl Spotify { pub fn test_credentials(credentials: Credentials) -> Result { let config = Self::session_config(); - // let rt = Runtime::new().unwrap(); let handle = tokio::runtime::Handle::current(); let jh = handle.spawn(async { Session::connect(config, credentials, None).await }); futures::executor::block_on(jh).unwrap() diff --git a/src/ui/statusbar.rs b/src/ui/statusbar.rs index a60d911..e098c40 100644 --- a/src/ui/statusbar.rs +++ b/src/ui/statusbar.rs @@ -72,7 +72,9 @@ impl View for StatusBar { let state_icon = if self.use_nerdfont { match self.spotify.get_current_status() { - PlayerEvent::Paused(_) | PlayerEvent::Stopped | PlayerEvent::FinishedTrack => "\u{f909} ", + PlayerEvent::Paused(_) | PlayerEvent::Stopped | PlayerEvent::FinishedTrack => { + "\u{f909} " + } PlayerEvent::Playing(_) => "\u{f8e3} ", } } else {