diff options
author | Craig Disselkoen <[email protected]> | 2020-05-07 20:06:44 +0100 |
---|---|---|
committer | Craig Disselkoen <[email protected]> | 2020-05-07 20:06:44 +0100 |
commit | 3077eae2a61f97c28c0d4e3456f6ab873126e5b8 (patch) | |
tree | 1395585ddf7da2a06cc658c7e6f4e998eee68620 /crates/ra_env/src | |
parent | 227929f9ddd3a5dfdab8a5552f457fd6184d3eb2 (diff) |
use home crate instead of dirs
Diffstat (limited to 'crates/ra_env/src')
-rw-r--r-- | crates/ra_env/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_env/src/lib.rs b/crates/ra_env/src/lib.rs index 4f94bffde..413da1982 100644 --- a/crates/ra_env/src/lib.rs +++ b/crates/ra_env/src/lib.rs | |||
@@ -36,7 +36,7 @@ pub fn get_path_for_executable(executable_name: impl AsRef<str>) -> Result<PathB | |||
36 | if is_valid_executable(executable_name) { | 36 | if is_valid_executable(executable_name) { |
37 | return Ok(executable_name.into()); | 37 | return Ok(executable_name.into()); |
38 | } | 38 | } |
39 | if let Some(mut path) = dirs::home_dir() { | 39 | if let Some(mut path) = ::home::home_dir() { |
40 | path.push(".cargo"); | 40 | path.push(".cargo"); |
41 | path.push("bin"); | 41 | path.push("bin"); |
42 | path.push(executable_name); | 42 | path.push(executable_name); |