eliminate duplicate absolute path join

This commit is contained in:
MeiHui FAN 2022-10-24 19:58:22 +08:00
parent c2c4989483
commit 029c0b23f4

View file

@ -49,7 +49,7 @@ impl Serve {
if cfg!(windows) { if cfg!(windows) {
file.set_extension("exe"); file.set_extension("exe");
} }
Command::new(crate_config.out_dir.join(file).to_str().unwrap()) Command::new(file.to_str().unwrap())
.stdout(Stdio::inherit()) .stdout(Stdio::inherit())
.output()?; .output()?;
} }