mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
use OnlyBodies instead of All
we only need to check closures, so nestedfilter::All was overkill here.
This commit is contained in:
parent
8de011fdf7
commit
cf4e9813b0
1 changed files with 1 additions and 1 deletions
|
@ -1262,7 +1262,7 @@ pub struct ContainsName<'a, 'tcx> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'tcx> Visitor<'tcx> for ContainsName<'a, 'tcx> {
|
impl<'a, 'tcx> Visitor<'tcx> for ContainsName<'a, 'tcx> {
|
||||||
type NestedFilter = nested_filter::All;
|
type NestedFilter = nested_filter::OnlyBodies;
|
||||||
|
|
||||||
fn visit_name(&mut self, name: Symbol) {
|
fn visit_name(&mut self, name: Symbol) {
|
||||||
if self.name == name {
|
if self.name == name {
|
||||||
|
|
Loading…
Reference in a new issue