Skip to content

Commit

Permalink
fix: remove fs::canonicalize(PathBuf::from(".").join(path)) when comm…
Browse files Browse the repository at this point in the history
…and is bin
  • Loading branch information
someoneonsmile committed Oct 14, 2024
1 parent afcc4df commit 7bfcea3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7bfcea3

Please sign in to comment.