Cargo format
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user