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