diff --git a/src/extensions/traversable.rs b/src/extensions/traversable.rs index 2abc802..335b4f6 100644 --- a/src/extensions/traversable.rs +++ b/src/extensions/traversable.rs @@ -580,7 +580,7 @@ pub(crate) fn fold<'a, Item: 'a, B>( } pub(crate) fn group_fold<'a, Item, K: Eq + Hash, B>( - mut iterator: impl Iterator, mut to_key: impl FnMut(&Item) -> K, initial_value: &B, + iterator: impl Iterator, mut to_key: impl FnMut(&Item) -> K, initial_value: &B, mut function: impl FnMut(B, &Item) -> B, ) -> HashMap where