@@ -39,7 +39,6 @@ pub fn new<I, K, V>(iter: I) -> GroupingMap<I>
3939/// `GroupingMapBy` is an intermediate struct for efficient group-and-fold operations.
4040///
4141/// See [`GroupingMap`] for more informations.
42- #[ must_use = "GroupingMapBy is lazy and do nothing unless consumed" ]
4342pub type GroupingMapBy < I , F > = GroupingMap < MapForGrouping < I , F > > ;
4443
4544/// `GroupingMap` is an intermediate struct for efficient group-and-fold operations.
@@ -290,7 +289,7 @@ impl<I, K, V> GroupingMap<I>
290289 where F : FnMut ( & K , & V ) -> CK ,
291290 CK : Ord ,
292291 {
293- 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) ) )
294293 }
295294
296295 /// Groups elements from the `GroupingMap` source by key and finds the minimum of each group.
@@ -368,7 +367,7 @@ impl<I, K, V> GroupingMap<I>
368367 where F : FnMut ( & K , & V ) -> CK ,
369368 CK : Ord ,
370369 {
371- 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) ) )
372371 }
373372
374373 /// Groups elements from the `GroupingMap` source by key and find the maximum and minimum of
@@ -481,7 +480,7 @@ impl<I, K, V> GroupingMap<I>
481480 where F : FnMut ( & K , & V ) -> CK ,
482481 CK : Ord ,
483482 {
484- 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) ) )
485484 }
486485
487486 /// Groups elements from the `GroupingMap` source by key and sums them.
0 commit comments