diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-06-27 00:31:42 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-27 00:31:42 +0100 |
commit | b1a4e810a4909c36eabf6f4b746a021c2074c2c3 (patch) | |
tree | 88ddac56c779586cf9c678588fdd69970585f372 /crates/ra_toolchain/src/lib.rs | |
parent | 2dcab133e116ef691d45a32ab5eef8ae9cfa9477 (diff) | |
parent | 9617bb4f07f724b25abd4040a960f5ccff97b569 (diff) |
Merge #5087
5087: Try to find rustfmt in more places r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_toolchain/src/lib.rs')
-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 |