-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat: add some clippy lint #10479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add some clippy lint #10479
Conversation
mattsse
left a comment
There was a problem hiding this 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
5919830 to
bd4445d
Compare
|
@grandizzy fixed some conflicts, plz review again |
| let mut log_index = 0; | ||
| let mut gas_used = 0; | ||
| let mut transactions = Vec::with_capacity(calls.len()); | ||
| let mut receipts = Vec::new(); |
There was a problem hiding this comment.
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();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also wondering this, the rest of the changes LGTM
grandizzy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this lgtm, thank you, pending @mattsse @zerosnacks
mattsse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems fine, lets send
ty
Motivation
closes #10149
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