diff options
author | Akshay <[email protected]> | 2021-10-23 08:11:09 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-10-23 08:11:09 +0100 |
commit | e8f5ed3a5ce9ba10e900b97dc95d3961dfa60718 (patch) | |
tree | 904767fe4ff70ed0f081b17af042c89e10984610 | |
parent | b26272ba3e9067197e0aff16ba2ce8780e0acb96 (diff) |
fix useless_parens: lint on idents as well
-rw-r--r-- | lib/src/lints/useless_parens.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/src/lints/useless_parens.rs b/lib/src/lints/useless_parens.rs index d93f06c..2d6ba8f 100644 --- a/lib/src/lints/useless_parens.rs +++ b/lib/src/lints/useless_parens.rs | |||
@@ -84,6 +84,7 @@ fn do_thing(parsed_type_node: ParsedType) -> Option<Diagnostic> { | |||
84 | | ParsedType::Str(_) | 84 | | ParsedType::Str(_) |
85 | | ParsedType::AttrSet(_) | 85 | | ParsedType::AttrSet(_) |
86 | | ParsedType::Select(_) | 86 | | ParsedType::Select(_) |
87 | | ParsedType::Ident(_) | ||
87 | ); | 88 | ); |
88 | then { | 89 | then { |
89 | let at = paren_expr_range; | 90 | let at = paren_expr_range; |