Skip to content

Commit 3077eae

Browse files
committed
use home crate instead of dirs
1 parent 227929f commit 3077eae

File tree

3 files changed

+13
-78
lines changed

3 files changed

+13
-78
lines changed

Cargo.lock

Lines changed: 11 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ra_env/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ authors = ["rust-analyzer developers"]
66

77
[dependencies]
88
anyhow = "1.0.26"
9-
dirs = "2.0"
9+
home = "0.5.3"

crates/ra_env/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn get_path_for_executable(executable_name: impl AsRef<str>) -> Result<PathB
3636
if is_valid_executable(executable_name) {
3737
return Ok(executable_name.into());
3838
}
39-
if let Some(mut path) = dirs::home_dir() {
39+
if let Some(mut path) = ::home::home_dir() {
4040
path.push(".cargo");
4141
path.push("bin");
4242
path.push(executable_name);

0 commit comments

Comments
 (0)