rust-lang/rust-clippy

Lint x != _ || x != _

Open

#853 opened on Apr 12, 2016

View on GitHub
 (3 comments) (0 reactions) (1 assignee)Rust (10,406 stars) (1,391 forks)batch import
A-lintL-correctnessT-middlegood first issue

Description

Also probably x == _ && x == _. This is either a duplicate (if both _ are equal) or always false (true for the former).

Contributor guide