Repository navigation
clippy 1.99: make the CI Lint job's clippy step clean - #181
Conversation
With CI's exact flags (cargo clippy --all-targets -- -D warnings -A ...): - chunks_exact(8) -> as_chunks::<8>().0.iter() (16 sites), reading the [u8; 8] directly instead of try_into().unwrap(); avx_engine uses the as_chunks remainder. Same semantics: the trailing remainder is still dropped. - examples/heartbeat.rs: core::simd was removed in ced28ba; import core::hamming_distance - small ones: clone on Copy, slice fill, ? operator, needless into_iter, a no-op | 0, a 3.14 test literal (approx_constant) -> 2.5 - allow module_inception on the private spo/spo.rs reference module and field_reassign_with_default in agent_state tests - rustfmt on the 8 files this branch's edits left unformatted (the DataFusion 54 port in src/query/* and the as_chunks sites) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017YPZhKpSxN7eSxk7VH2vzB
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Unit Tests (all modules) and Proof Summary are red, but not because of this PR. The library run aborts with a stack overflow in I ran the library tests locally on this branch with The clippy step of the Lint job now exits 0, run with CI's exact flags. Generated by Claude Code |
This is a follow-up to #180, which merged before this commit was pushed. It makes the clippy step of the
CI: MasterLint job pass on the pinned 1.99.0 toolchain.Verified with CI's exact command,
cargo clippy --all-targets -- -D warnings -A unused -A dead-code …, which exits 0.Changes
chunks_exact(8)→as_chunks::<8>().0.iter(), 16 sites, from the newchunks_exact_to_as_chunkslint.[u8; 8]directly instead of callingtry_into().unwrap().graph/avx_engine.rstakes the remainder fromas_chunksas well.examples/heartbeat.rsstill importedcore::simd, whichced28baremoved. It now importscore::hamming_distance.cloneon aCopytype, a manual slice fill, a nestedif letthat can be the?operator, a needlessinto_iter, and a no-op| 0u64. A3.14test literal trippedapprox_constant, so it is now2.5.allows:module_inceptionon the privatespo/spo.rsreference module (CLAUDE.md §2).field_reassign_with_defaultin theagent_statetest module.src/query/*and theas_chunkssites.cargo fmt --all --checkcan't run in a workspace whose siblingn8n-rspath-depends onrustynum/jitson. That needs a wasmtime fork that isn't cloned, socargo metadatafails. I checked each file withrustfmtover stdin instead.Tests
The library tests are re-running locally with
RUST_MIN_STACK=64MiB. I'll post the comparison against the known failure set from main (27 failures) on this PR when the run finishes.🤖 Generated with Claude Code
https://claude.ai/code/session_017YPZhKpSxN7eSxk7VH2vzB
Generated by Claude Code