aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-03-08 18:49:25 +0000
committerAleksey Kladov <[email protected]>2021-03-08 18:49:25 +0000
commitd2bb2268d3a9cc0e2a6970c85c45724af5eb255c (patch)
tree85413766cc45708d77dfa9cb5a3a00767af8461a
parentc0943f84fdb67025662dbcfc011e415870ee80a6 (diff)
Minor
-rw-r--r--xtask/src/codegen/gen_lint_completions.rs2
1 files changed, 1 insertions, 1 deletions
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};
8use crate::codegen::{ensure_file_contents, project_root, reformat, Result}; 8use crate::codegen::{ensure_file_contents, project_root, reformat, Result};
9 9
10pub(crate) fn generate_lint_completions() -> Result<()> { 10pub(crate) fn generate_lint_completions() -> Result<()> {
11 if !Path::new("./target/rust").exists() { 11 if !project_root().join("./target/rust").exists() {
12 cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?; 12 cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?;
13 } 13 }
14 14