A-lintL-correctnessT-middlegood first issue
倉庫指標
- Star
- (10,406 star)
- PR 合併指標
- (平均合併 19天 22小時) (30 天內合併 113 個 PR)
描述
I'd like Clippy to find this problem in the code, this expression is always true, and Clippy should also suggest the usage of && here instead:
fn foo1a(name: &str) {
if name != "Min" || name != "Max" {}
}
Another example:
fn foo1b(x: i32) -> bool {
x > 10 || x < 25
}