diff options
author | Aleksey Kladov <[email protected]> | 2021-03-08 18:49:25 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-03-08 18:49:25 +0000 |
commit | d2bb2268d3a9cc0e2a6970c85c45724af5eb255c (patch) | |
tree | 85413766cc45708d77dfa9cb5a3a00767af8461a /xtask/src/codegen | |
parent | c0943f84fdb67025662dbcfc011e415870ee80a6 (diff) |
Minor
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r-- | xtask/src/codegen/gen_lint_completions.rs | 2 |
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}; | |||
8 | use crate::codegen::{ensure_file_contents, project_root, reformat, Result}; | 8 | use crate::codegen::{ensure_file_contents, project_root, reformat, Result}; |
9 | 9 | ||
10 | pub(crate) fn generate_lint_completions() -> Result<()> { | 10 | pub(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 | ||