Static rustc_lint::unused::UNUSED_BRACES [−][src]
pub(crate) static UNUSED_BRACES: &LintExpand description
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.