fix: move final stout flush to main.rs

This commit is contained in:
Jack Wills
2023-02-27 02:56:38 +00:00
parent aac3ef2b1d
commit b6c3ce21ca
2 changed files with 7 additions and 6 deletions
+1 -2
View File
@@ -6,7 +6,7 @@ use crossterm::{
};
use parking_lot::Mutex;
use std::{
io::{self, Write},
io,
sync::{atomic::Ordering, Arc},
};
use std::{sync::atomic::AtomicBool, time::Instant};
@@ -62,7 +62,6 @@ pub async fn create_ui(
if let Err(err) = res {
println!("error: {err}");
}
std::io::stdout().flush().unwrap_or(());
Ok(())
}