@@ -2383,11 +2383,11 @@ impl<'a> Iterator for IterU32Digits<'a> {
2383
2383
}
2384
2384
2385
2385
fn nth ( & mut self , n : usize ) -> Option < u32 > {
2386
- self . it . nth ( n) . map ( | & t| t )
2386
+ self . it . nth ( n) . cloned ( )
2387
2387
}
2388
2388
2389
2389
fn last ( self ) -> Option < u32 > {
2390
- self . it . last ( ) . map ( | & t| t )
2390
+ self . it . last ( ) . cloned ( )
2391
2391
}
2392
2392
2393
2393
fn count ( self ) -> usize {
@@ -2455,19 +2455,19 @@ impl<'a> IterU64Digits<'a> {
2455
2455
impl < ' a > Iterator for IterU64Digits < ' a > {
2456
2456
type Item = u64 ;
2457
2457
fn next ( & mut self ) -> Option < u64 > {
2458
- self . it . next ( ) . map ( | & t| t )
2458
+ self . it . next ( ) . cloned ( )
2459
2459
}
2460
2460
2461
2461
fn size_hint ( & self ) -> ( usize , Option < usize > ) {
2462
2462
self . it . size_hint ( )
2463
2463
}
2464
2464
2465
2465
fn nth ( & mut self , n : usize ) -> Option < u64 > {
2466
- self . it . nth ( n) . map ( | & t| t )
2466
+ self . it . nth ( n) . cloned ( )
2467
2467
}
2468
2468
2469
2469
fn last ( self ) -> Option < u64 > {
2470
- self . it . last ( ) . map ( | & t| t )
2470
+ self . it . last ( ) . cloned ( )
2471
2471
}
2472
2472
2473
2473
fn count ( self ) -> usize {
@@ -2779,7 +2779,7 @@ impl BigUint {
2779
2779
/// assert_eq!(BigUint::from(112500000000u64).iter_u32_digits().collect::<Vec<u32>>(), vec![830850304, 26]);
2780
2780
/// ```
2781
2781
#[ inline]
2782
- pub fn iter_u32_digits < ' a > ( & ' a self ) -> IterU32Digits < ' a > {
2782
+ pub fn iter_u32_digits ( & self ) -> IterU32Digits < ' _ > {
2783
2783
IterU32Digits :: new ( self . data . as_slice ( ) )
2784
2784
}
2785
2785
@@ -2797,7 +2797,7 @@ impl BigUint {
2797
2797
/// assert_eq!(BigUint::from(112500000000u64).iter_u64_digits().collect::<Vec<u64>>(), vec![112500000000]);
2798
2798
/// ```
2799
2799
#[ inline]
2800
- pub fn iter_u64_digits < ' a > ( & ' a self ) -> IterU64Digits < ' a > {
2800
+ pub fn iter_u64_digits ( & self ) -> IterU64Digits < ' _ > {
2801
2801
IterU64Digits :: new ( self . data . as_slice ( ) )
2802
2802
}
2803
2803
0 commit comments