Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
eliminate duplicate absolute path join
Browse files Browse the repository at this point in the history
  • Loading branch information
mhfan committed Oct 24, 2022
1 parent c2c4989 commit 029c0b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/serve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Serve {
if cfg!(windows) {
file.set_extension("exe");
}
Command::new(crate_config.out_dir.join(file).to_str().unwrap())
Command::new(file.to_str().unwrap())
.stdout(Stdio::inherit())
.output()?;
}
Expand Down

0 comments on commit 029c0b2

Please sign in to comment.