Skip to content

lint comparison operations on bool  #3438

@oli-obk

Description

@oli-obk

We already have bool_comparison, but it only lints equality. we should extend it to also cover inequality and ordering operations.

Inspired by the wonderful https://twitter.com/chordbug/status/1064932667089670144?s=20

Some care needs to be taken to produce good suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.good 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