From 7bfcea39705b16d1effe593a92af5ca987c59edb Mon Sep 17 00:00:00 2001 From: someoneonsmile Date: Mon, 14 Oct 2024 17:02:24 +0800 Subject: [PATCH] fix: remove fs::canonicalize(PathBuf::from(".").join(path)) when command is bin --- src/config.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index cff4fcf..cdd1153 100644 --- a/src/config.rs +++ b/src/config.rs @@ -144,8 +144,6 @@ impl Command { { let mut command = match self { Self::Bin(path) => { - // FIXME: 是否可以直接使用 path - let path = fs::canonicalize(PathBuf::from(".").join(path))?; let c = tokio::process::Command::new(path.as_os_str()); c }