clippy_lints 0.0.107

A bunch of helpful lints to avoid common pitfalls in Rust

Module clippy_lints::collapsible_if [] [src]

Checks for if expressions that contain only an if expression.

For example, the lint would catch:

if x {
    if y {
        println!("Hello world");
    }
}

This lint is warn by default

Structs

CollapsibleIf

Statics

COLLAPSIBLE_IF