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