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 (1,391 forks)batch import
A-lintC-enhancementgood first issue

Repository metrics

Stars
 (10,406 stars)
PR merge metrics
 (平均マージ 19d 22h) (30d で 113 merged PRs)

説明

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

could be

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

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