Try to find rustfmt in more places

This commit is contained in:
Aleksey Kladov 2020-06-27 01:28:06 +02:00
parent f5584668db
commit 9617bb4f07
4 changed files with 7 additions and 1 deletions

View file

@ -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