rust-lang/rust-clippy

improve collapsible if in complex cases with same expressions

Open

#812 opened on 2016年3月30日

GitHub で見る
 (1 comment) (0 reactions) (1 assignee)Rust (10,406 stars) (1,391 forks)batch import
A-lintC-enhancementgood first issue

説明

if a {
    if b {
        f();
    }
} else {
    f();
}

could be

if !a || b {
    f();
}

コントリビューターガイド