Cargo format

This commit is contained in:
Henrik Friedrichsen
2021-05-10 22:18:03 +02:00
parent 09404285c1
commit 8fb854dea6
2 changed files with 3 additions and 2 deletions

View File

@@ -144,7 +144,6 @@ impl Spotify {
pub fn test_credentials(credentials: Credentials) -> Result<Session, SessionError> {
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()

View File

@@ -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 {