-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
suggest the | for match_same_arms #1075
Comments
I'm pretty sure it has already been reported that what the lint means (ie. use |
Ok, I've open #1082. The error will now contain
Is that enough? |
Looks great! 👍 Will the |
To answer my own question: kinda. It uses the matched code but probably doesn't give it in a way that rustfix can use atm. |
Yes, but the suggestion won't be applicable by rustfix. There is no clean way to signal that we need to remove one of the arm. |
I ran into
match_same_arms
and was quite confused. I got ready to report a false positive, but then I found #860 and figured out that I just needed to use|
in my pattern.In #860 in the comments having clippy suggest of
|
is mentioned, but no issue seems to have been opened. So I'm doing so now :)The text was updated successfully, but these errors were encountered: