Skip to content

warn on identical arguments of assert_eq!() #3574

Closed
@matthiaskrgr

Description

@matthiaskrgr
fn main() {
    let thing_a = 3;
    let thing_b = 4;
    assert_eq!(thing_a, thing_a); // lint here, this should probably be
    // assert_eq!(thing_a, thing_b)
    println!("{} {}", thing_a, thing_b);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsL-correctnessLint: Belongs in the correctness lint groupgood 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