Skip to content

Commit 53c9a65

Browse files
committed
add depth=1 for git clone clippy lints
Signed-off-by: Benjamin Coenen <[email protected]>
1 parent a5ff67b commit 53c9a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/codegen/gen_lint_completions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::{
1616

1717
pub fn generate_lint_completions(mode: Mode) -> Result<()> {
1818
if !Path::new("./target/rust").exists() {
19-
run!("git clone https://github.com/rust-lang/rust ./target/rust")?;
19+
run!("git clone --depth=1 https://github.com/rust-lang/rust ./target/rust")?;
2020
}
2121

2222
let ts_features = generate_descriptor("./target/rust/src/doc/unstable-book/src".into())?;

0 commit comments

Comments
 (0)