[eventic-autofix] Fix workspace-wide clippy lints from rust 1.96.0 toolchain bump#58
Conversation
…bump The CI stable toolchain advanced 1.94.1 -> 1.96.0, surfacing new default-deny clippy lints workspace-wide. Because CI runs `cargo clippy --all-targets --all-features -- -D warnings`, ANY lint fails the whole job, so main went red on Clippy / Clippy Strict / the Release clippy gate after PR #57 merged. There is no minimal subset that greens CI — all lints must be resolved. All changes are mechanical and behavior-preserving (`cargo clippy --fix` + `cargo fmt`): - collapsible_if: nested `if`/`if let` collapsed into `&&`/`&& let` chains - manual_is_multiple_of: `x % y == 0` -> `x.is_multiple_of(y)` - is_some_and / is_none_or tidy-ups Validated locally under the exact CI toolchain (1.96.0): - cargo clippy --all-targets --all-features -- -D warnings : clean - cargo fmt --all -- --check : clean - cargo test --workspace --lib --bins : all green (470+ tests)
|
[eventic] self-trigger validation — autofix This
The fix stands — no retry or revert. Main CI is green on this commit (Clippy / Clippy Strict / Build & Test). |
|
🤖 Eventic self-trigger validation — PASS This autofix merged to
Verdict recorded; no escalation needed. (Docker Build & Push / Cloud Build were still in progress at validation time — not clippy gates and unaffected by source-only style rewrites.) |
Why main is red
The CI stable toolchain advanced 1.94.1 → 1.96.0 (
dtolnay/rust-toolchain@stable). That surfaced new default-deny clippy lints across the workspace. Because CI runscargo clippy --all-targets --all-features -- -D warnings, any lint fails the entire job — somainwent red on Clippy, Clippy Strict, and the Release workflow's clippy gate immediately after #57 (rust-minor dep group) merged atd5f2dca.The dep bump itself isn't the cause; the merge just triggered a fresh CI run on the newer stable. The first failing lint (
collapsible_ifinlnc-core/src/backpressure.rs) masked the rest — once it's fixed, CI hits the others. There is no minimal subset that greens CI; every flagged lint must be resolved together.What changed
Purely mechanical, behavior-preserving (
cargo clippy --fix+cargo fmt), 31 source files:collapsible_if— nestedif/if letcollapsed into&&/&& letchains (the bulk; MSRV is 1.88 so let-chains are in-policy)manual_is_multiple_of—x % y == 0→x.is_multiple_of(y)is_some_and/is_none_ortidy-upsNo logic, control-flow, or public API changes.
Cargo.lockintentionally left atmain(the dep state is #57's).Local validation — exact CI toolchain (1.96.0)
cargo clippy --all-targets --all-features -- -D warnings→ cleancargo fmt --all -- --check→ cleancargo test --workspace --lib --bins→ 470+ tests, all green (only infra-gated tests ignored)Why a PR and not a direct push
This is
format_lint(an auto-fix category), but it spans 31 files / ~500 lines, well over the eventic auto-fix guards (max_files: 15,max_lines_changed: 200). Per policy, over-guard changes are escalated for review rather than auto-landed tomain— especially since a greenmainpush here also triggers thenitecon/lance:latestDocker build+push. Merging is the user's call.Tracked as a gateway task on the eventic board.