summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e330f53..59a70da 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -136,8 +136,9 @@ async fn update_msg(check: bool) -> eyre::Result<()> {
}
async fn readline(msg: &str) -> eyre::Result<String> {
+ use std::io::Write;
print!("{msg}");
- tokio::io::stdout().flush().await?;
+ std::io::stdout().flush()?;
tokio::task::spawn_blocking(|| {
let mut input = String::new();
std::io::stdin().read_line(&mut input)?;