Skip to content

fix: clear clippy 1.96 drift + bump rustls-webpki (unblock CI) - #97

Merged
userFRM merged 2 commits into
mainfrom
fix/ci-drift-clippy-audit
May 29, 2026
Merged

fix: clear clippy 1.96 drift + bump rustls-webpki (unblock CI)#97
userFRM merged 2 commits into
mainfrom
fix/ci-drift-clippy-audit

Conversation

@userFRM

@userFRM userFRM commented May 29, 2026

Copy link
Copy Markdown
Owner

Closes #96.

CI uses dtolnay/rust-toolchain@stable (now 1.96), whose clippy flags lints absent in older toolchains. main is red on every PR. This clears all of them under -D warnings + resolves the security advisories.

Changes

  • clippy unnecessary_sort_bysort_by_key(Reverse(..)): rpg-core/graph.rs, rpg-nav/cycles.rs, rpg-nav/snapshot.rs, and the rpg-parser/build.rs codegen for lang_registry.rs.
  • clippy unnecessary trailing comma in format! args: rpg-parser/build.rs, rpg-mcp/tools.rs.
  • clippy iterating on a map's values: rpg-encoder/semantic_lifting.rs (file_index.values()).
  • clippy collapsible match arm: rpg-parser/deps.rs (match method_call_expression only; behaviour-preserving).
  • clippy duration_suboptimal_units: rpg-lift/provider.rs from_secs(120)from_mins(2).
  • Security Audit: bump rustls-webpki 0.103.11 → 0.103.13 (RUSTSEC-2026-0099 + RUSTSEC-2026-0104, reachable panic in CRL parsing).

Test plan

  • cargo +stable clippy --workspace --all-targets -- -D warnings (clean)
  • cargo +stable fmt --all -- --check
  • cargo +stable test --workspace (all pass, 0 failed)
  • cargo audit --ignore RUSTSEC-2025-0119 --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2026-0097 (exit 0)

userFRM added 2 commits May 29, 2026 19:30
Two pre-existing failures on main (toolchain + advisory-db drift) that block
every PR:
- crates/rpg-parser/build.rs: remove 3 unnecessary trailing commas in format!
  args (newer stable clippy flags them under -D warnings).
- Cargo.lock: bump rustls-webpki 0.103.11 -> 0.103.13, resolving
  RUSTSEC-2026-0104 (reachable panic in CRL parsing) and RUSTSEC-2026-0099.
CI uses dtolnay/rust-toolchain@stable (now 1.96), which flags lints absent in
older clippy. Resolve every workspace lint under -D warnings:
- sort_by -> sort_by_key(Reverse(..)): graph.rs, cycles.rs, snapshot.rs, and the
  build.rs codegen for lang_registry.
- unnecessary trailing commas in format! args: build.rs, tools.rs.
- iterating a map's values: semantic_lifting.rs (file_index.values()).
- collapsible match arm: deps.rs (method_call_expression only).
- duration_suboptimal_units: provider.rs from_secs(120) -> from_mins(2).
Also bump rustls-webpki 0.103.11 -> 0.103.13 (RUSTSEC-2026-0099/0104).
@userFRM userFRM changed the title fix: unblock CI (clippy build.rs commas + rustls-webpki advisory) fix: clear clippy 1.96 drift + bump rustls-webpki (unblock CI) May 29, 2026
@userFRM
userFRM merged commit 34b22fc into main May 29, 2026
6 checks passed
@userFRM
userFRM deleted the fix/ci-drift-clippy-audit branch May 29, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI red on main: clippy build.rs trailing commas + rustls-webpki advisory

1 participant