mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Try to find rustfmt in more places
This commit is contained in:
parent
f5584668db
commit
9617bb4f07
4 changed files with 7 additions and 1 deletions
|
@ -15,6 +15,10 @@ pub fn rustup() -> PathBuf {
|
|||
get_path_for_executable("rustup")
|
||||
}
|
||||
|
||||
pub fn rustfmt() -> PathBuf {
|
||||
get_path_for_executable("rustfmt")
|
||||
}
|
||||
|
||||
/// Return a `PathBuf` to use for the given executable.
|
||||
///
|
||||
/// E.g., `get_path_for_executable("cargo")` may return just `cargo` if that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue