Closed
Description
As @scottmcm pointed out here, the unused_parens
lints should be extended to also catch unused parentheses in patterns:
match (1) { // Warns, as expected
(_) => {} // Doesn't warn, but should for consistency
}
As @scottmcm pointed out here, the unused_parens
lints should be extended to also catch unused parentheses in patterns:
match (1) { // Warns, as expected
(_) => {} // Doesn't warn, but should for consistency
}