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> {
4040 }
4141}
4242
43- impl < ' a > Iterator for PrimeFactorization < ' a > {
43+ impl Iterator for PrimeFactorization < ' _ > {
4444 type Item = ( Underlying , u8 ) ;
4545 fn next ( & mut self ) -> Option < Self :: Item > {
4646 if self . number == 1 {
@@ -70,7 +70,7 @@ impl<'a> Iterator for PrimeFactorization<'a> {
7070 }
7171}
7272
73- impl < ' a > FusedIterator for PrimeFactorization < ' a > { }
73+ impl FusedIterator for PrimeFactorization < ' _ > { }
7474
7575/// An iterator over the prime factors of a given number.
7676///
@@ -109,7 +109,7 @@ impl<'a> PrimeFactors<'a> {
109109 }
110110}
111111
112- impl < ' a > Iterator for PrimeFactors < ' a > {
112+ impl Iterator for PrimeFactors < ' _ > {
113113 type Item = Underlying ;
114114 fn next ( & mut self ) -> Option < Self :: Item > {
115115 while let Some ( prime) = self . primes_cache . get ( self . cache_index ) {
@@ -128,4 +128,4 @@ impl<'a> Iterator for PrimeFactors<'a> {
128128 }
129129}
130130
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> {
5858 }
5959}
6060
61- impl < ' a > ExactSizeIterator for PrimesIter < ' a > {
61+ impl ExactSizeIterator for PrimesIter < ' _ > {
6262 #[ inline]
6363 fn len ( & self ) -> usize {
6464 self . 0 . len ( )
6565 }
6666}
6767
68- impl < ' a > FusedIterator for PrimesIter < ' a > { }
68+ impl FusedIterator for PrimesIter < ' _ > { }
6969
70- impl < ' a > DoubleEndedIterator for PrimesIter < ' a > {
70+ impl DoubleEndedIterator for PrimesIter < ' _ > {
7171 #[ inline]
7272 fn next_back ( & mut self ) -> Option < Self :: Item > {
7373 self . 0 . next_back ( )
You can’t perform that action at this time.
0 commit comments