aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_toolchain
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-06-27 00:28:06 +0100
committerAleksey Kladov <[email protected]>2020-06-27 00:28:06 +0100
commit9617bb4f07f724b25abd4040a960f5ccff97b569 (patch)
tree88ddac56c779586cf9c678588fdd69970585f372 /crates/ra_toolchain
parentf5584668dba709a119f398de038b3f36085be5ff (diff)
Try to find rustfmt in more places
Diffstat (limited to 'crates/ra_toolchain')
-rw-r--r--crates/ra_toolchain/src/lib.rs4
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
18pub 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