Skip to content
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

chore: Add clippy settings to Cargo.toml #71

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

moricho
Copy link
Contributor

@moricho moricho commented Dec 4, 2024

No description provided.

Comment on lines 172 to 174
self.stack.last().map_or(EMPTY_ROOT_HASH, |node_ref| {
node_ref.as_hash().map_or_else(|| keccak256(node_ref), |hash| hash)
})
Copy link
Member

Choose a reason for hiding this comment

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

this is worse for readability, please disable this lint

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed option-if-let-else lint and reverted the above change: 5c240ec

@moricho moricho requested a review from DaniPopes December 4, 2024 15:26
@DaniPopes DaniPopes merged commit fdd66f0 into alloy-rs:main Dec 4, 2024
19 of 21 checks passed
@moricho moricho deleted the add-clippy branch December 4, 2024 15:35
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.

2 participants