Rust

Rust

Made by DeepSource

Found unnecessary boolean comparison RS-W1001

Anti-pattern
Minor
Autofix

Expressions of the form x == true, !y == false are unnecessary. Consider using the variable directly.

Prefer using the variable directly instead of performing a comparison.

Bad practice

if x == true {}
if y == false {}

Recommended

if x {}
if !y {}