pub(crate) static UNUSED_PARENS: &Lint
The unused_parens lint detects if, match, while and return with parentheses; they do not need them.
unused_parens
if
match
while
return
if(true) {}
{{produces}}
The parentheses are not needed, and should be removed. This is the preferred style for writing these expressions.