mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
cargo fmt
This commit is contained in:
parent
44b01ccff3
commit
5d4648884b
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ fn create_command_text(program: &str, args: &[&str]) -> String {
|
|||
format!("{} {}", program, args.join(" "))
|
||||
}
|
||||
|
||||
fn run_command_in_cargo_dir(cargo_toml: impl AsRef<Path>, program: impl AsRef<Path>, args: &[&str]) -> Result<Output> {
|
||||
fn run_command_in_cargo_dir(
|
||||
cargo_toml: impl AsRef<Path>,
|
||||
program: impl AsRef<Path>,
|
||||
args: &[&str],
|
||||
) -> Result<Output> {
|
||||
let program = program.as_ref().as_os_str().to_str().expect("Invalid Unicode in path");
|
||||
let output = Command::new(program)
|
||||
.current_dir(cargo_toml.as_ref().parent().unwrap())
|
||||
|
|
Loading…
Reference in a new issue