We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20b7351 commit 248251bCopy full SHA for 248251b
clippy_dev/Cargo.toml
@@ -11,3 +11,5 @@ regex = "1"
11
lazy_static = "1.0"
12
shell-escape = "0.1"
13
walkdir = "2"
14
+# FIXME: remove this once cargo issue #7475 is fixed
15
+home = "0.5"
clippy_dev/src/fmt.rs
@@ -202,7 +202,7 @@ fn project_root() -> Result<PathBuf, CliError> {
202
// Workaround for https://github.com/rust-lang/cargo/issues/7475.
203
// FIXME: replace `&bin_path("command")` with `"command"` once the issue is fixed
204
fn bin_path(bin: &str) -> String {
205
- let mut p = PathBuf::from(std::env::var_os("CARGO_HOME").unwrap());
+ let mut p = home::cargo_home().unwrap();
206
p.push("bin");
207
p.push(bin);
208
p.display().to_string()
0 commit comments