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 {