## UNUSED_PARENS

# Static 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

    if(true) {}

{{produces}}

#### §Explanation

The parentheses are not needed, and should be removed. This is the preferred style for writing these expressions.