fix: tasks number format (#26)

This commit is contained in:
fzdwx 2023-08-06 18:49:55 +08:00 committed by GitHub
parent dadc408a8e
commit badcf99416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ impl Manager {
tokio::spawn(async move {
let result =
emit!(Input(InputOpt::top("There are {tasks} tasks running, sure to quit? (y/N)")));
emit!(Input(InputOpt::top(format!("There are {tasks} tasks running, sure to quit? (y/N)"))));
if let Ok(choice) = result.await {
if choice.to_lowercase() == "y" {