Static rustc_lint::unused::UNUSED_PARENS [−][src]
pub(crate) static UNUSED_PARENS: &LintExpand description
The unused_parens lint detects if, match, while and return
with parentheses; they do not need them.
Examples
if(true) {}{{produces}}
Explanation
The parentheses are not needed, and should be removed. This is the preferred style for writing these expressions.