File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl<'a> PrimeFactorization<'a> {
40
40
}
41
41
}
42
42
43
- impl < ' a > Iterator for PrimeFactorization < ' a > {
43
+ impl Iterator for PrimeFactorization < ' _ > {
44
44
type Item = ( Underlying , u8 ) ;
45
45
fn next ( & mut self ) -> Option < Self :: Item > {
46
46
if self . number == 1 {
@@ -70,7 +70,7 @@ impl<'a> Iterator for PrimeFactorization<'a> {
70
70
}
71
71
}
72
72
73
- impl < ' a > FusedIterator for PrimeFactorization < ' a > { }
73
+ impl FusedIterator for PrimeFactorization < ' _ > { }
74
74
75
75
/// An iterator over the prime factors of a given number.
76
76
///
@@ -109,7 +109,7 @@ impl<'a> PrimeFactors<'a> {
109
109
}
110
110
}
111
111
112
- impl < ' a > Iterator for PrimeFactors < ' a > {
112
+ impl Iterator for PrimeFactors < ' _ > {
113
113
type Item = Underlying ;
114
114
fn next ( & mut self ) -> Option < Self :: Item > {
115
115
while let Some ( prime) = self . primes_cache . get ( self . cache_index ) {
@@ -128,4 +128,4 @@ impl<'a> Iterator for PrimeFactors<'a> {
128
128
}
129
129
}
130
130
131
- impl < ' a > FusedIterator for PrimeFactors < ' a > { }
131
+ impl FusedIterator for PrimeFactors < ' _ > { }
Original file line number Diff line number Diff line change @@ -58,16 +58,16 @@ impl<'a> Iterator for PrimesIter<'a> {
58
58
}
59
59
}
60
60
61
- impl < ' a > ExactSizeIterator for PrimesIter < ' a > {
61
+ impl ExactSizeIterator for PrimesIter < ' _ > {
62
62
#[ inline]
63
63
fn len ( & self ) -> usize {
64
64
self . 0 . len ( )
65
65
}
66
66
}
67
67
68
- impl < ' a > FusedIterator for PrimesIter < ' a > { }
68
+ impl FusedIterator for PrimesIter < ' _ > { }
69
69
70
- impl < ' a > DoubleEndedIterator for PrimesIter < ' a > {
70
+ impl DoubleEndedIterator for PrimesIter < ' _ > {
71
71
#[ inline]
72
72
fn next_back ( & mut self ) -> Option < Self :: Item > {
73
73
self . 0 . next_back ( )
You can’t perform that action at this time.
0 commit comments