mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 05:08:52 +00:00
Minor
This commit is contained in:
parent
c0943f84fd
commit
d2bb2268d3
1 changed files with 1 additions and 1 deletions
|
@ -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()?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue