rust-lang/rust-clippy

improve collapsible if in complex cases with same expressions

Open

#812 aperta il 30 mar 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (1 assegnatario)Rust (1391 fork)batch import
A-lintC-enhancementgood first issue

Metriche repository

Star
 (10.406 star)
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();
}

Guida contributor