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 | |
parent | 227929f9ddd3a5dfdab8a5552f457fd6184d3eb2 (diff) |
use home crate instead of dirs
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_env/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_env/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_env/Cargo.toml b/crates/ra_env/Cargo.toml index 7fed446a7..f0a401be5 100644 --- a/crates/ra_env/Cargo.toml +++ b/crates/ra_env/Cargo.toml | |||
@@ -6,4 +6,4 @@ authors = ["rust-analyzer developers"] | |||
6 | 6 | ||
7 | [dependencies] | 7 | [dependencies] |
8 | anyhow = "1.0.26" | 8 | anyhow = "1.0.26" |
9 | dirs = "2.0" | 9 | home = "0.5.3" |
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); |