Skip to content

Commit 308ec1e

Browse files
committed
Recurse on path arguments in HasSelf
1 parent 7e79f10 commit 308ec1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/receiver.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ struct HasSelf(bool);
2222
impl VisitMut for HasSelf {
2323
fn visit_type_path_mut(&mut self, ty: &mut TypePath) {
2424
self.0 |= ty.path.segments[0].ident == "Self";
25+
visit_mut::visit_type_path_mut(self, ty);
2526
}
2627

2728
fn visit_arg_self_mut(&mut self, _arg: &mut ArgSelf) {

0 commit comments

Comments
 (0)