Cargo format
This commit is contained in:
@@ -144,7 +144,6 @@ impl Spotify {
|
|||||||
|
|
||||||
pub fn test_credentials(credentials: Credentials) -> Result<Session, SessionError> {
|
pub fn test_credentials(credentials: Credentials) -> Result<Session, SessionError> {
|
||||||
let config = Self::session_config();
|
let config = Self::session_config();
|
||||||
// let rt = Runtime::new().unwrap();
|
|
||||||
let handle = tokio::runtime::Handle::current();
|
let handle = tokio::runtime::Handle::current();
|
||||||
let jh = handle.spawn(async { Session::connect(config, credentials, None).await });
|
let jh = handle.spawn(async { Session::connect(config, credentials, None).await });
|
||||||
futures::executor::block_on(jh).unwrap()
|
futures::executor::block_on(jh).unwrap()
|
||||||
|
|||||||
@@ -72,7 +72,9 @@ impl View for StatusBar {
|
|||||||
|
|
||||||
let state_icon = if self.use_nerdfont {
|
let state_icon = if self.use_nerdfont {
|
||||||
match self.spotify.get_current_status() {
|
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} ",
|
PlayerEvent::Playing(_) => "\u{f8e3} ",
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user