Skip to content

Commit ac0202d

Browse files
committed
CI: Split Clippy into a strict workspace run and a zebra-chain-only run, allowing the new 1.85 lints
1 parent 408eeed commit ac0202d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci-basic.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,20 @@ jobs:
4242
- name: Run format check
4343
run: cargo fmt -- --check
4444
- name: Run clippy
45-
run: cargo clippy --workspace --no-deps --all-features --all-targets --locked -- -D warnings
45+
run: |
46+
# Keep clippy strict for most crates, but avoid churn from toolchain-specific lints
47+
# in upstream Zebra code that started firing after the Rust 1.85 toolchain bump.
48+
cargo clippy \
49+
--workspace --no-deps --all-features --all-targets --locked \
50+
--exclude zebra-chain \
51+
-- -D warnings
52+
53+
cargo clippy \
54+
-p zebra-chain --no-deps --all-features --all-targets --locked \
55+
-- -D warnings \
56+
-A elided_named_lifetimes \
57+
-A clippy::needless_lifetimes \
58+
-A clippy::unnecessary_lazy_evaluations
4659
- name: Show system resource summary
4760
run: |
4861
df -h

0 commit comments

Comments
 (0)