Skip to content

Duplicate warnings for match_bool / single_match #403

Closed
@llogiq

Description

@llogiq

The following snippet generates two lint warnings:

match test { //~ ERROR you seem to be trying to match on a boolean expression
    //~^ERROR you seem to be trying to use match
    false => { println!("Noooo!"); },
    _ => (),
};

FWIW, I think the right option is to skip the single_match lint if the match_bool lint already warned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesgood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions