Skip to content

suggest the | for match_same_arms #1075

Closed
@Apanatshka

Description

@Apanatshka

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-documentationArea: Adding or improving documentationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions