mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
cargo fmt
This commit is contained in:
parent
303b444dbb
commit
7e60264ba0
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ pub fn get_path_for_executable(executable_name: impl AsRef<str>) -> Result<Strin
|
|||
if is_valid_executable(&path) {
|
||||
Ok(path)
|
||||
} else {
|
||||
Err(Error::msg(format!("`{}` environment variable points to something that's not a valid executable", env_var)))
|
||||
Err(Error::msg(format!(
|
||||
"`{}` environment variable points to something that's not a valid executable",
|
||||
env_var
|
||||
)))
|
||||
}
|
||||
} else {
|
||||
let final_path: Option<String> = if is_valid_executable(executable_name) {
|
||||
|
|
Loading…
Reference in a new issue