mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +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