Static rustc_lint::unused::UNUSED_PARENS
source · pub(crate) static UNUSED_PARENS: &'static Lint
Expand 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.