Skip to content

Commit 8b50599

Browse files
james9909flip1995
authored andcommitted
Switch to OnlyBodies
1 parent e23a424 commit 8b50599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unused_self.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ impl<'a, 'tcx> Visitor<'tcx> for UnusedSelfVisitor<'a, 'tcx> {
9797
}
9898

9999
fn nested_visit_map<'this>(&'this mut self) -> NestedVisitorMap<'this, 'tcx> {
100-
NestedVisitorMap::All(&self.cx.tcx.hir())
100+
NestedVisitorMap::OnlyBodies(&self.cx.tcx.hir())
101101
}
102102
}

0 commit comments

Comments
 (0)