rust-lang/rust-clippy
improve collapsible if in complex cases with same expressions
Aperta
#812 aperta il 30 mar 2016
A-lintC-enhancementgood first issue
Metriche repository
- Star
- (10.406 stelle)
- Metriche merge PR
- (Merge medio 19g 22h) (113 PR mergiate in 30 g)
Descrizione
if a {
if b {
f();
}
} else {
f();
}
could be
if !a || b {
f();
}