Skip to content

Commit d2bb226

Browse files
committed
Minor
1 parent c0943f8 commit d2bb226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/codegen/gen_lint_completions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use xshell::{cmd, read_file};
88
use crate::codegen::{ensure_file_contents, project_root, reformat, Result};
99

1010
pub(crate) fn generate_lint_completions() -> Result<()> {
11-
if !Path::new("./target/rust").exists() {
11+
if !project_root().join("./target/rust").exists() {
1212
cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?;
1313
}
1414

0 commit comments

Comments
 (0)