Skip to content

feat: add some clippy lint #10479

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

taikoonwang
Copy link
Contributor

Motivation

torward: #10150

The above PR involved too many linting rules, so this time I want to split it into smaller PRs, similar to reth. Each PR will contain around 5 linting rules to make reviewing easier.

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

mattsse
mattsse previously approved these changes May 9, 2025
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these lgtm, pending @DaniPopes @grandizzy

@taikoonwang taikoonwang force-pushed the lint/cloned_instead_of_copied branch from 5919830 to bd4445d Compare May 13, 2025 09:17
@taikoonwang
Copy link
Contributor Author

@grandizzy fixed some conflicts, plz review again

@@ -1535,7 +1534,6 @@ impl Backend {
let mut log_index = 0;
let mut gas_used = 0;
let mut transactions = Vec::with_capacity(calls.len());
let mut receipts = Vec::new();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: collection is never read
    --> crates/anvil/src/eth/backend/mem/mod.rs:1537:17
     |
1537 |                 let mut receipts = Vec::new();

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants