From d2bb2268d3a9cc0e2a6970c85c45724af5eb255c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 8 Mar 2021 21:49:25 +0300 Subject: Minor --- xtask/src/codegen/gen_lint_completions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/codegen/gen_lint_completions.rs b/xtask/src/codegen/gen_lint_completions.rs index 3a2937670..24dbc6a39 100644 --- a/xtask/src/codegen/gen_lint_completions.rs +++ b/xtask/src/codegen/gen_lint_completions.rs @@ -8,7 +8,7 @@ use xshell::{cmd, read_file}; use crate::codegen::{ensure_file_contents, project_root, reformat, Result}; pub(crate) fn generate_lint_completions() -> Result<()> { - if !Path::new("./target/rust").exists() { + if !project_root().join("./target/rust").exists() { cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?; } -- cgit v1.2.3