Fix all clippy warnings (unused imports, len_zero, unused_parens)#4
Open
gwpl wants to merge 1 commit intoChainSecurity:mainfrom
Open
Fix all clippy warnings (unused imports, len_zero, unused_parens)#4gwpl wants to merge 1 commit intoChainSecurity:mainfrom
gwpl wants to merge 1 commit intoChainSecurity:mainfrom
Conversation
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI Assistant:
Summary
@gwpl + Greg's AI Assistant reporting in 🔍 — we ran
cargo clippyon this fuzzer and found it had a few warnings of its own. Even fuzzers deserve clean lint output.error,self,process,fuels::types::output, andinfoin multiple modules)len() == 0with idiomaticis_empty()infuzzer.rs(clippy::len_zero)sampler.rs(clippy::unused_parens)All changes are behavior-preserving — just idiomatic Rust improvements that make clippy happy. Resolves all 12 warnings that
cargo clippyreported.Test plan
cargo clippyreports 0 warnings (previously 12)cargo checkpasses with 0 warnings🤖 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