aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lints
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/lints')
-rw-r--r--lib/src/lints/useless_has_attr.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/src/lints/useless_has_attr.rs b/lib/src/lints/useless_has_attr.rs
index aae560a..2dbdb5b 100644
--- a/lib/src/lints/useless_has_attr.rs
+++ b/lib/src/lints/useless_has_attr.rs
@@ -63,7 +63,8 @@ impl Rule for UselessHasAttr {
63 | SyntaxKind::NODE_PAREN 63 | SyntaxKind::NODE_PAREN
64 | SyntaxKind::NODE_STRING 64 | SyntaxKind::NODE_STRING
65 | SyntaxKind::NODE_ATTR_SET 65 | SyntaxKind::NODE_ATTR_SET
66 | SyntaxKind::NODE_IDENT => default_expr, 66 | SyntaxKind::NODE_IDENT
67 | SyntaxKind::NODE_SELECT => default_expr,
67 _ => make::parenthesize(&default_expr).node().clone(), 68 _ => make::parenthesize(&default_expr).node().clone(),
68 }; 69 };
69 let replacement = make::or_default(&set, &attr_path, &default_with_parens).node().clone(); 70 let replacement = make::or_default(&set, &attr_path, &default_with_parens).node().clone();