This commit is contained in:
Aleksey Kladov 2021-03-08 21:49:25 +03:00
parent c0943f84fd
commit d2bb2268d3

View file

@ -8,7 +8,7 @@ use xshell::{cmd, read_file};
use crate::codegen::{ensure_file_contents, project_root, reformat, Result}; use crate::codegen::{ensure_file_contents, project_root, reformat, Result};
pub(crate) fn generate_lint_completions() -> 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()?; cmd!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust").run()?;
} }