[−][src]Static rustc_lint::unused::UNUSED_BRACES
pub(crate) static UNUSED_BRACES: &Lint
The unused_braces lint detects unnecessary braces around an
expression.
Example
if { true } { // ... }
{{produces}}
Explanation
The braces are not needed, and should be removed. This is the preferred style for writing these expressions.