aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-23 08:11:09 +0100
committerAkshay <[email protected]>2021-10-23 08:11:09 +0100
commite8f5ed3a5ce9ba10e900b97dc95d3961dfa60718 (patch)
tree904767fe4ff70ed0f081b17af042c89e10984610 /lib
parentb26272ba3e9067197e0aff16ba2ce8780e0acb96 (diff)
fix useless_parens: lint on idents as well
Diffstat (limited to 'lib')
-rw-r--r--lib/src/lints/useless_parens.rs1
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;