Skip to content

Commit 866d735

Browse files
committed
fix clippy::unnecessary_fold in tests
1 parent f94596f commit 866d735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/quick.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ quickcheck! {
12861286
.map(|i| (i % modulo, i))
12871287
.into_group_map()
12881288
.into_iter()
1289-
.map(|(key, vals)| (key, vals.into_iter().fold(0u64, |acc, val| acc + val)))
1289+
.map(|(key, vals)| (key, vals.into_iter().sum()))
12901290
.collect::<HashMap<_,_>>();
12911291
assert_eq!(lookup, group_map_lookup);
12921292

0 commit comments

Comments
 (0)