@@ -106,7 +106,7 @@ pub mod structs {
106
106
pub use crate :: groupbylazy:: GroupBy ;
107
107
#[ cfg( feature = "use_alloc" ) ]
108
108
pub use crate :: groupbylazy:: { Chunk , ChunkBy , Chunks , Group , Groups , IntoChunks } ;
109
- #[ cfg( feature = "use_std " ) ]
109
+ #[ cfg( feature = "use_alloc " ) ]
110
110
pub use crate :: grouping_map:: { GroupingMap , GroupingMapBy } ;
111
111
pub use crate :: intersperse:: { Intersperse , IntersperseWith } ;
112
112
#[ cfg( feature = "use_alloc" ) ]
@@ -191,7 +191,7 @@ mod generic_containers;
191
191
mod group_map;
192
192
#[ cfg( feature = "use_alloc" ) ]
193
193
mod groupbylazy;
194
- #[ cfg( feature = "use_std " ) ]
194
+ #[ cfg( feature = "use_alloc " ) ]
195
195
mod grouping_map;
196
196
mod intersperse;
197
197
#[ cfg( feature = "use_alloc" ) ]
@@ -3272,11 +3272,10 @@ pub trait Itertools: Iterator {
3272
3272
///
3273
3273
/// See [`GroupingMap`] for more informations
3274
3274
/// on what operations are available.
3275
- #[ cfg( feature = "use_std " ) ]
3275
+ #[ cfg( feature = "use_alloc " ) ]
3276
3276
fn into_grouping_map < K , V > ( self ) -> GroupingMap < Self >
3277
3277
where
3278
3278
Self : Iterator < Item = ( K , V ) > + Sized ,
3279
- K : Hash + Eq ,
3280
3279
{
3281
3280
grouping_map:: new ( self )
3282
3281
}
@@ -3289,11 +3288,10 @@ pub trait Itertools: Iterator {
3289
3288
///
3290
3289
/// See [`GroupingMap`] for more informations
3291
3290
/// on what operations are available.
3292
- #[ cfg( feature = "use_std " ) ]
3291
+ #[ cfg( feature = "use_alloc " ) ]
3293
3292
fn into_grouping_map_by < K , V , F > ( self , key_mapper : F ) -> GroupingMapBy < Self , F >
3294
3293
where
3295
3294
Self : Iterator < Item = V > + Sized ,
3296
- K : Hash + Eq ,
3297
3295
F : FnMut ( & V ) -> K ,
3298
3296
{
3299
3297
grouping_map:: new ( grouping_map:: new_map_for_grouping ( self , key_mapper) )
0 commit comments