From badcf994163485b7746902aa70c3e833e9604928 Mon Sep 17 00:00:00 2001 From: fzdwx Date: Sun, 6 Aug 2023 18:49:55 +0800 Subject: [PATCH] fix: tasks number format (#26) --- core/src/manager/manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/manager/manager.rs b/core/src/manager/manager.rs index e78d81de..08e0610e 100644 --- a/core/src/manager/manager.rs +++ b/core/src/manager/manager.rs @@ -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" {