Skip to content

Commit cf4e981

Browse files
committed
use OnlyBodies instead of All
we only need to check closures, so nestedfilter::All was overkill here.
1 parent 8de011f commit cf4e981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ pub struct ContainsName<'a, 'tcx> {
12621262
}
12631263

12641264
impl<'a, 'tcx> Visitor<'tcx> for ContainsName<'a, 'tcx> {
1265-
type NestedFilter = nested_filter::All;
1265+
type NestedFilter = nested_filter::OnlyBodies;
12661266

12671267
fn visit_name(&mut self, name: Symbol) {
12681268
if self.name == name {

0 commit comments

Comments
 (0)