Skip to content

Fix all clippy warnings (unused imports, len_zero, unused_parens)#4

Open
gwpl wants to merge 1 commit intoChainSecurity:mainfrom
VariousForks:i1-fix-clippy-warnings
Open

Fix all clippy warnings (unused imports, len_zero, unused_parens)#4
gwpl wants to merge 1 commit intoChainSecurity:mainfrom
VariousForks:i1-fix-clippy-warnings

Conversation

@gwpl
Copy link
Copy Markdown

@gwpl gwpl commented Mar 24, 2026

AI Assistant:

Summary

@gwpl + Greg's AI Assistant reporting in 🔍 — we ran cargo clippy on this fuzzer and found it had a few warnings of its own. Even fuzzers deserve clean lint output.

  • Remove 9 unused imports across 7 files (error, self, process, fuels::types::output, and info in multiple modules)
  • Replace len() == 0 with idiomatic is_empty() in fuzzer.rs (clippy::len_zero)
  • Remove unnecessary parentheses around closure bodies in sampler.rs (clippy::unused_parens)

All changes are behavior-preserving — just idiomatic Rust improvements that make clippy happy. Resolves all 12 warnings that cargo clippy reported.

Test plan

  • cargo clippy reports 0 warnings (previously 12)
  • cargo check passes with 0 warnings
  • No behavioral changes — only idiomatic Rust improvements
  • Each fix is a standard clippy recommendation

🤖 Generated with Claude Code — because a fuzzer that finds bugs in others should have none of its own

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

* Remove unused imports: `error` and `self` (fuzzer.rs), `process` and
  `fuels::types::output` (rustsdk.rs), `info` (rustsdk.rs, sampler.rs,
  sway.rs, sway_converter.rs, ts_converter.rs, tssdk.rs)
* Replace `len() == 0` with `is_empty()` (fuzzer.rs, clippy::len_zero)
* Remove unnecessary parentheses around closure bodies (sampler.rs,
  clippy::unused_parens)

All changes are behavior-preserving — resolves all 12 clippy warnings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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