Skip to content

Commit 3e721b1

Browse files
committed
Remove hir::StmtKind::attrs.
1 parent 476c528 commit 3e721b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/inspector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<'tcx> LateLintPass<'tcx> for DeepCodeInspector {
109109
}
110110

111111
fn check_stmt(&mut self, cx: &LateContext<'tcx>, stmt: &'tcx hir::Stmt<'_>) {
112-
if !has_attr(cx.sess(), stmt.kind.attrs(|id| cx.tcx.hir().item(id))) {
112+
if !has_attr(cx.sess(), cx.tcx.hir().attrs(stmt.hir_id)) {
113113
return;
114114
}
115115
match stmt.kind {

0 commit comments

Comments
 (0)