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