diff options
author | Aleksey Kladov <[email protected]> | 2020-06-27 00:28:06 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-27 00:28:06 +0100 |
commit | 9617bb4f07f724b25abd4040a960f5ccff97b569 (patch) | |
tree | 88ddac56c779586cf9c678588fdd69970585f372 /crates/ra_toolchain | |
parent | f5584668dba709a119f398de038b3f36085be5ff (diff) |
Try to find rustfmt in more places
Diffstat (limited to 'crates/ra_toolchain')
-rw-r--r-- | crates/ra_toolchain/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 { | |||
15 | get_path_for_executable("rustup") | 15 | get_path_for_executable("rustup") |
16 | } | 16 | } |
17 | 17 | ||
18 | pub fn rustfmt() -> PathBuf { | ||
19 | get_path_for_executable("rustfmt") | ||
20 | } | ||
21 | |||
18 | /// Return a `PathBuf` to use for the given executable. | 22 | /// Return a `PathBuf` to use for the given executable. |
19 | /// | 23 | /// |
20 | /// E.g., `get_path_for_executable("cargo")` may return just `cargo` if that | 24 | /// E.g., `get_path_for_executable("cargo")` may return just `cargo` if that |