mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
For toolchain binaries ue the full path found in $PATH
This commit is contained in:
parent
fe0daa7be3
commit
c310aee8d6
7 changed files with 63 additions and 67 deletions
|
@ -189,7 +189,7 @@ fn _format(
|
|||
let &crate_id = db.relevant_crates(file_id).iter().next()?;
|
||||
let edition = db.crate_graph()[crate_id].edition;
|
||||
|
||||
let mut cmd = std::process::Command::new(toolchain::rustfmt());
|
||||
let mut cmd = std::process::Command::new(toolchain::Tool::Rustfmt.path());
|
||||
cmd.arg("--edition");
|
||||
cmd.arg(edition.to_string());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue