From e8f5ed3a5ce9ba10e900b97dc95d3961dfa60718 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 23 Oct 2021 12:41:09 +0530 Subject: fix useless_parens: lint on idents as well --- lib/src/lints/useless_parens.rs | 1 + 1 file changed, 1 insertion(+) 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 { | ParsedType::Str(_) | ParsedType::AttrSet(_) | ParsedType::Select(_) + | ParsedType::Ident(_) ); then { let at = paren_expr_range; -- cgit v1.2.3