From 9617bb4f07f724b25abd4040a960f5ccff97b569 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 27 Jun 2020 01:28:06 +0200 Subject: Try to find rustfmt in more places --- crates/ra_toolchain/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_toolchain') diff --git a/crates/ra_toolchain/src/lib.rs b/crates/ra_toolchain/src/lib.rs index 3d2865e09..9532fb255 100644 --- a/crates/ra_toolchain/src/lib.rs +++ b/crates/ra_toolchain/src/lib.rs @@ -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 -- cgit v1.2.3