-
Notifications
You must be signed in to change notification settings - Fork 681
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: Apply Clippy lints single_match
and redundant_pattern_matching
#5740
chore: Apply Clippy lints single_match
and redundant_pattern_matching
#5740
Conversation
…pattern-matching` and fix conflicts
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.
LGTM, just had a suggestion for a few additional opportunistic refactors.
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.
Looks good. I just triggered a retry of the failing tests.
- tests::nakamoto_integrations::follower_bootup_across_multiple_cycles
- tests::signer::v0::no_reorg_due_to_successive_block_validation_ok
- tests::signer::v0::single_miner_empty_sortition
- net::tests::convergence::test_walk_star_allowed_15
- net::tests::convergence::test_walk_star_15_plain
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.
👍
…attern-matching and fix conflicts
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.
LGTM, assuming tests pass.
…pattern-matching` and fix conflicts
Quick review of failing tests:
|
d2ed454
Description
Apply the following Clippy lints:
single_match
redundant_pattern_matching
These lints reduce certain
match
andif let
statements into simpler forms, and result in 370 fewer lines of code