Rust

Rust

Made by DeepSource

Found useless if block RS-W1010

Anti-pattern
Minor

if blocks with trivial conditions such as if true and if false are suspicious and require an audit. Such conditions are probably debugging remnants and should not make it into your source tree.

Consider revisiting this if block.

Bad practice

if true {
    /* ... */
} else {
    /* unreachable branch */
}