Skip to content

Commit d819767

Browse files
Vincent Rouillécuviper
andcommitted
use iterator .cloned instead of map in IterU32Digits
Co-authored-by: Josh Stone <cuviper@gmail.com>
1 parent d9e188b commit d819767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/biguint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ impl<'a> IterU32Digits<'a> {
23752375
impl<'a> Iterator for IterU32Digits<'a> {
23762376
type Item = u32;
23772377
fn next(&mut self) -> Option<u32> {
2378-
self.it.next().map(|&t| t)
2378+
self.it.next().cloned()
23792379
}
23802380

23812381
fn size_hint(&self) -> (usize, Option<usize>) {

0 commit comments

Comments
 (0)