@@ -289,7 +289,7 @@ impl<I, K, V> GroupingMap<I>
289289 where F : FnMut ( & K , & V ) -> CK ,
290290 CK : Ord ,
291291 {
292- self . max_by ( |key, v1, v2| f ( key, & v1) . cmp ( & f ( key, & v2) ) )
292+ self . max_by ( |key, v1, v2| f ( key, v1) . cmp ( & f ( key, v2) ) )
293293 }
294294
295295 /// Groups elements from the `GroupingMap` source by key and finds the minimum of each group.
@@ -367,7 +367,7 @@ impl<I, K, V> GroupingMap<I>
367367 where F : FnMut ( & K , & V ) -> CK ,
368368 CK : Ord ,
369369 {
370- self . min_by ( |key, v1, v2| f ( key, & v1) . cmp ( & f ( key, & v2) ) )
370+ self . min_by ( |key, v1, v2| f ( key, v1) . cmp ( & f ( key, v2) ) )
371371 }
372372
373373 /// Groups elements from the `GroupingMap` source by key and find the maximum and minimum of
@@ -480,7 +480,7 @@ impl<I, K, V> GroupingMap<I>
480480 where F : FnMut ( & K , & V ) -> CK ,
481481 CK : Ord ,
482482 {
483- self . minmax_by ( |key, v1, v2| f ( key, & v1) . cmp ( & f ( key, & v2) ) )
483+ self . minmax_by ( |key, v1, v2| f ( key, v1) . cmp ( & f ( key, v2) ) )
484484 }
485485
486486 /// Groups elements from the `GroupingMap` source by key and sums them.
0 commit comments