Skip to content

fix: resolve 111 clippy warnings across 45 files#200

Merged
genezhang merged 2 commits intomainfrom
fix/clippy-warnings-cleanup
Mar 10, 2026
Merged

fix: resolve 111 clippy warnings across 45 files#200
genezhang merged 2 commits intomainfrom
fix/clippy-warnings-cleanup

Conversation

@genezhang
Copy link
Copy Markdown
Owner

Summary

  • Reduce clippy warnings from 224 to 113 (50% reduction) with zero test regressions (1,575 tests pass)
  • Safe, mechanical fixes only — no behavioral changes, no removed imports, no signature changes
  • Categories: map_oris_some_and (23), useless conversions (14), deref refs (12), map iteration (12), redundant closures (8), clone-on-Copy (6), or_default (4), assert! (4), unreachable patterns (3), unused mut/vars, box simplifications

Test plan

  • cargo clippy --all-targets — 113 warnings (down from 224)
  • cargo test — 1,575 tests pass, 0 failures
  • cargo fmt --all — clean

🤖 Generated with Claude Code

genezhang and others added 2 commits March 9, 2026 18:25
Reduce clippy warnings from 224 to 113 (50% reduction) with zero test
regressions. Categories fixed: map_or→is_some_and (23), useless
conversions (14), immediately dereferenced refs (12), iterate map
keys/values (12), redundant closures (8), clone on Copy types (6),
or_insert_with→or_default (4), assert_eq!(bool)→assert! (4),
unreachable patterns (3), unused mut/vars, box simplifications, and
collapsed if-else chains.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Addresses high-severity DoS vulnerability in quinn-proto 0.11.13.
Dependency chain: clickgraph-client → reqwest → quinn → quinn-proto.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@genezhang genezhang force-pushed the fix/clippy-warnings-cleanup branch from 67b9419 to 7db12ab Compare March 10, 2026 01:26
@genezhang genezhang merged commit fc82925 into main Mar 10, 2026
4 checks passed
@genezhang genezhang deleted the fix/clippy-warnings-cleanup branch March 10, 2026 01:34
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.

1 participant