aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r--components/script_plugins/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs
index 5ff11efd1bd..bad98739450 100644
--- a/components/script_plugins/lib.rs
+++ b/components/script_plugins/lib.rs
@@ -83,10 +83,10 @@ fn has_lint_attr(sym: &Symbols, attrs: &[Attribute], name: Symbol) -> bool {
attrs.iter().any(|attr| {
matches!(
&attr.kind,
- AttrKind::Normal(attr_item, _)
- if attr_item.path.segments.len() == 2 &&
- attr_item.path.segments[0].ident.name == sym.unrooted_must_root_lint &&
- attr_item.path.segments[1].ident.name == name
+ AttrKind::Normal(normal)
+ if normal.item.path.segments.len() == 2 &&
+ normal.item.path.segments[0].ident.name == sym.unrooted_must_root_lint &&
+ normal.item.path.segments[1].ident.name == name
)
})
}