rust-lang/rust-clippy

improve collapsible if in complex cases with same expressions

Open

#812 创建于 2016年3月30日

在 GitHub 查看
 (1 评论) (0 反应) (1 负责人)Rust (1,391 fork)batch import
A-lintC-enhancementgood first issue

仓库指标

Star
 (10,406 star)
PR 合并指标
 (平均合并 19天 22小时) (30 天内合并 113 个 PR)

描述

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

could be

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

贡献者指南