@@ -48,7 +48,7 @@ impl<'a> FollowingSiblings<'a> {
48
48
}
49
49
}
50
50
51
- impl < ' a > Iterator for FollowingSiblings < ' a > {
51
+ impl Iterator for FollowingSiblings < ' _ > {
52
52
type Item = NodeId ;
53
53
54
54
fn next ( & mut self ) -> Option < Self :: Item > {
@@ -76,7 +76,7 @@ impl<'a> Iterator for FollowingSiblings<'a> {
76
76
}
77
77
}
78
78
79
- impl < ' a > DoubleEndedIterator for FollowingSiblings < ' a > {
79
+ impl DoubleEndedIterator for FollowingSiblings < ' _ > {
80
80
fn next_back ( & mut self ) -> Option < Self :: Item > {
81
81
if self . done {
82
82
None
@@ -94,9 +94,9 @@ impl<'a> DoubleEndedIterator for FollowingSiblings<'a> {
94
94
}
95
95
}
96
96
97
- impl < ' a > ExactSizeIterator for FollowingSiblings < ' a > { }
97
+ impl ExactSizeIterator for FollowingSiblings < ' _ > { }
98
98
99
- impl < ' a > FusedIterator for FollowingSiblings < ' a > { }
99
+ impl FusedIterator for FollowingSiblings < ' _ > { }
100
100
101
101
/// An iterator that yields preceding siblings of a node.
102
102
///
@@ -126,7 +126,7 @@ impl<'a> PrecedingSiblings<'a> {
126
126
}
127
127
}
128
128
129
- impl < ' a > Iterator for PrecedingSiblings < ' a > {
129
+ impl Iterator for PrecedingSiblings < ' _ > {
130
130
type Item = NodeId ;
131
131
132
132
fn next ( & mut self ) -> Option < Self :: Item > {
@@ -156,7 +156,7 @@ impl<'a> Iterator for PrecedingSiblings<'a> {
156
156
}
157
157
}
158
158
159
- impl < ' a > DoubleEndedIterator for PrecedingSiblings < ' a > {
159
+ impl DoubleEndedIterator for PrecedingSiblings < ' _ > {
160
160
fn next_back ( & mut self ) -> Option < Self :: Item > {
161
161
if self . done {
162
162
None
@@ -174,9 +174,9 @@ impl<'a> DoubleEndedIterator for PrecedingSiblings<'a> {
174
174
}
175
175
}
176
176
177
- impl < ' a > ExactSizeIterator for PrecedingSiblings < ' a > { }
177
+ impl ExactSizeIterator for PrecedingSiblings < ' _ > { }
178
178
179
- impl < ' a > FusedIterator for PrecedingSiblings < ' a > { }
179
+ impl FusedIterator for PrecedingSiblings < ' _ > { }
180
180
181
181
fn next_filtered_sibling < ' a > (
182
182
node : Option < Node < ' a > > ,
@@ -297,8 +297,8 @@ impl<'a, Filter: Fn(&Node) -> FilterResult> Iterator for FollowingFilteredSiblin
297
297
}
298
298
}
299
299
300
- impl < ' a , Filter : Fn ( & Node ) -> FilterResult > DoubleEndedIterator
301
- for FollowingFilteredSiblings < ' a , Filter >
300
+ impl < Filter : Fn ( & Node ) -> FilterResult > DoubleEndedIterator
301
+ for FollowingFilteredSiblings < ' _ , Filter >
302
302
{
303
303
fn next_back ( & mut self ) -> Option < Self :: Item > {
304
304
if self . done {
@@ -312,10 +312,7 @@ impl<'a, Filter: Fn(&Node) -> FilterResult> DoubleEndedIterator
312
312
}
313
313
}
314
314
315
- impl < ' a , Filter : Fn ( & Node ) -> FilterResult > FusedIterator
316
- for FollowingFilteredSiblings < ' a , Filter >
317
- {
318
- }
315
+ impl < Filter : Fn ( & Node ) -> FilterResult > FusedIterator for FollowingFilteredSiblings < ' _ , Filter > { }
319
316
320
317
/// An iterator that yields preceding siblings of a node according to the
321
318
/// specified filter.
@@ -358,8 +355,8 @@ impl<'a, Filter: Fn(&Node) -> FilterResult> Iterator for PrecedingFilteredSiblin
358
355
}
359
356
}
360
357
361
- impl < ' a , Filter : Fn ( & Node ) -> FilterResult > DoubleEndedIterator
362
- for PrecedingFilteredSiblings < ' a , Filter >
358
+ impl < Filter : Fn ( & Node ) -> FilterResult > DoubleEndedIterator
359
+ for PrecedingFilteredSiblings < ' _ , Filter >
363
360
{
364
361
fn next_back ( & mut self ) -> Option < Self :: Item > {
365
362
if self . done {
@@ -373,10 +370,7 @@ impl<'a, Filter: Fn(&Node) -> FilterResult> DoubleEndedIterator
373
370
}
374
371
}
375
372
376
- impl < ' a , Filter : Fn ( & Node ) -> FilterResult > FusedIterator
377
- for PrecedingFilteredSiblings < ' a , Filter >
378
- {
379
- }
373
+ impl < Filter : Fn ( & Node ) -> FilterResult > FusedIterator for PrecedingFilteredSiblings < ' _ , Filter > { }
380
374
381
375
/// An iterator that yields children of a node according to the specified
382
376
/// filter.
@@ -417,7 +411,7 @@ impl<'a, Filter: Fn(&Node) -> FilterResult> Iterator for FilteredChildren<'a, Fi
417
411
}
418
412
}
419
413
420
- impl < ' a , Filter : Fn ( & Node ) -> FilterResult > DoubleEndedIterator for FilteredChildren < ' a , Filter > {
414
+ impl < Filter : Fn ( & Node ) -> FilterResult > DoubleEndedIterator for FilteredChildren < ' _ , Filter > {
421
415
fn next_back ( & mut self ) -> Option < Self :: Item > {
422
416
if self . done {
423
417
None
@@ -430,7 +424,7 @@ impl<'a, Filter: Fn(&Node) -> FilterResult> DoubleEndedIterator for FilteredChil
430
424
}
431
425
}
432
426
433
- impl < ' a , Filter : Fn ( & Node ) -> FilterResult > FusedIterator for FilteredChildren < ' a , Filter > { }
427
+ impl < Filter : Fn ( & Node ) -> FilterResult > FusedIterator for FilteredChildren < ' _ , Filter > { }
434
428
435
429
pub ( crate ) enum LabelledBy < ' a , Filter : Fn ( & Node ) -> FilterResult > {
436
430
FromDescendants ( FilteredChildren < ' a , Filter > ) ,
@@ -460,7 +454,7 @@ impl<'a, Filter: Fn(&Node) -> FilterResult> Iterator for LabelledBy<'a, Filter>
460
454
}
461
455
}
462
456
463
- impl < ' a , Filter : Fn ( & Node ) -> FilterResult > DoubleEndedIterator for LabelledBy < ' a , Filter > {
457
+ impl < Filter : Fn ( & Node ) -> FilterResult > DoubleEndedIterator for LabelledBy < ' _ , Filter > {
464
458
fn next_back ( & mut self ) -> Option < Self :: Item > {
465
459
match self {
466
460
Self :: FromDescendants ( iter) => iter. next_back ( ) ,
@@ -471,7 +465,7 @@ impl<'a, Filter: Fn(&Node) -> FilterResult> DoubleEndedIterator for LabelledBy<'
471
465
}
472
466
}
473
467
474
- impl < ' a , Filter : Fn ( & Node ) -> FilterResult > FusedIterator for LabelledBy < ' a , Filter > { }
468
+ impl < Filter : Fn ( & Node ) -> FilterResult > FusedIterator for LabelledBy < ' _ , Filter > { }
475
469
476
470
#[ cfg( test) ]
477
471
mod tests {
0 commit comments