aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_project_model/src/sysroot.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_project_model/src/sysroot.rs b/crates/ra_project_model/src/sysroot.rs
index ed374f241..11c26ad89 100644
--- a/crates/ra_project_model/src/sysroot.rs
+++ b/crates/ra_project_model/src/sysroot.rs
@@ -89,7 +89,11 @@ fn create_command_text(program: &str, args: &[&str]) -> String {
89 format!("{} {}", program, args.join(" ")) 89 format!("{} {}", program, args.join(" "))
90} 90}
91 91
92fn run_command_in_cargo_dir(cargo_toml: impl AsRef<Path>, program: impl AsRef<Path>, args: &[&str]) -> Result<Output> { 92fn run_command_in_cargo_dir(
93 cargo_toml: impl AsRef<Path>,
94 program: impl AsRef<Path>,
95 args: &[&str],
96) -> Result<Output> {
93 let program = program.as_ref().as_os_str().to_str().expect("Invalid Unicode in path"); 97 let program = program.as_ref().as_os_str().to_str().expect("Invalid Unicode in path");
94 let output = Command::new(program) 98 let output = Command::new(program)
95 .current_dir(cargo_toml.as_ref().parent().unwrap()) 99 .current_dir(cargo_toml.as_ref().parent().unwrap())