aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model
diff options
context:
space:
mode:
authorCraig Disselkoen <[email protected]>2020-05-06 20:47:13 +0100
committerCraig Disselkoen <[email protected]>2020-05-06 20:47:13 +0100
commit5d4648884baf591fe8f53e8ceae6d559564e9797 (patch)
tree165c1df84293540f4956ae4db097bdc838a07832 /crates/ra_project_model
parent44b01ccff3d993daae237c75d466050711d06268 (diff)
cargo fmt
Diffstat (limited to 'crates/ra_project_model')
-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())