Enhance collapsible_match to cover if-elses#16560
Merged
llogiq merged 2 commits intorust-lang:masterfrom Feb 22, 2026
Merged
Conversation
Collaborator
|
Some changes occurred in clippy_lints/src/doc cc @notriddle |
Collaborator
|
r? @llogiq rustbot has assigned @llogiq. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Lintcheck changes for 5be3049
This comment will be updated if you push new changes |
Contributor
|
Looks good to me. Thank you! |
meditationmind
added a commit
to meditationmind/serenity
that referenced
this pull request
Feb 26, 2026
Revert code change and use `expect(clippy::collapsible_match)` instead to maintain consistent event handler structure in examples. New errors caused by: rust-lang/rust-clippy#16560
meditationmind
added a commit
to meditationmind/serenity
that referenced
this pull request
Mar 1, 2026
Revert code change and use `expect(clippy::collapsible_match)` instead to maintain consistent event handler structure in examples. New errors caused by: rust-lang/rust-clippy#16560
Member
|
I think this warning should not trigger if |
meditationmind
added a commit
to meditationmind/serenity
that referenced
this pull request
Mar 2, 2026
Revert code change and use `expect(clippy::collapsible_match)` instead to maintain consistent event handler structure in examples. New errors caused by: rust-lang/rust-clippy#16560
|
Was this meant to change behaviour without |
Member
Member
Author
|
#16749 fixes a few of the bugs. I will also look into the new ones. |
mkj
added a commit
to CodeConstruct/mctp-rs
that referenced
this pull request
May 4, 2026
collapsible_match was extended to cover if statements. The existing code intent is clearer than with collapsed statements, so disable the check. clippy changed in rust-lang/rust-clippy#16560 Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
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.
Closes #16558
changelog: [
collapsible_match] extend to cover if-elses