main.rs: println before setting up cursive backend. (#969)

Co-authored-by: Henrik Friedrichsen <henrik@affekt.org>
This commit is contained in:
pghvlaans
2022-11-25 04:52:23 +09:00
committed by GitHub
parent 5c1fe9331a
commit 92a7903825

View File

@@ -191,6 +191,8 @@ async fn main() -> Result<(), String> {
credentials = credentials_prompt(Some(error_msg))?;
}
println!("Connecting to Spotify..");
// DON'T USE STDOUT AFTER THIS CALL!
let backend = cursive::backends::try_default().map_err(|e| e.to_string())?;
let buffered_backend = Box::new(cursive_buffered_backend::BufferedBackend::new(backend));