aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_env/src
diff options
context:
space:
mode:
authorCraig Disselkoen <[email protected]>2020-05-05 22:07:52 +0100
committerCraig Disselkoen <[email protected]>2020-05-06 00:12:56 +0100
commit7e60264ba0dc33110559390868c7c966f0ab2e64 (patch)
treee3c82afa372e2a13916e93e2b3eb6abb695d2df3 /crates/ra_env/src
parent303b444dbb66019fc916dd350e54f7675aa3007f (diff)
cargo fmt
Diffstat (limited to 'crates/ra_env/src')
-rw-r--r--crates/ra_env/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_env/src/lib.rs b/crates/ra_env/src/lib.rs
index cb9fbf80c..df20f783d 100644
--- a/crates/ra_env/src/lib.rs
+++ b/crates/ra_env/src/lib.rs
@@ -23,7 +23,10 @@ pub fn get_path_for_executable(executable_name: impl AsRef<str>) -> Result<Strin
23 if is_valid_executable(&path) { 23 if is_valid_executable(&path) {
24 Ok(path) 24 Ok(path)
25 } else { 25 } else {
26 Err(Error::msg(format!("`{}` environment variable points to something that's not a valid executable", env_var))) 26 Err(Error::msg(format!(
27 "`{}` environment variable points to something that's not a valid executable",
28 env_var
29 )))
27 } 30 }
28 } else { 31 } else {
29 let final_path: Option<String> = if is_valid_executable(executable_name) { 32 let final_path: Option<String> = if is_valid_executable(executable_name) {