@@ -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" ) ]
@@ -3283,11 +3283,10 @@ pub trait Itertools: Iterator {
3283
3283
///
3284
3284
/// See [`GroupingMap`] for more informations
3285
3285
/// on what operations are available.
3286
- #[ cfg( feature = "use_std " ) ]
3286
+ #[ cfg( feature = "use_alloc " ) ]
3287
3287
fn into_grouping_map < K , V > ( self ) -> GroupingMap < Self >
3288
3288
where
3289
3289
Self : Iterator < Item = ( K , V ) > + Sized ,
3290
- K : Hash + Eq ,
3291
3290
{
3292
3291
grouping_map:: new ( self )
3293
3292
}
@@ -3300,11 +3299,10 @@ pub trait Itertools: Iterator {
3300
3299
///
3301
3300
/// See [`GroupingMap`] for more informations
3302
3301
/// on what operations are available.
3303
- #[ cfg( feature = "use_std " ) ]
3302
+ #[ cfg( feature = "use_alloc " ) ]
3304
3303
fn into_grouping_map_by < K , V , F > ( self , key_mapper : F ) -> GroupingMapBy < Self , F >
3305
3304
where
3306
3305
Self : Iterator < Item = V > + Sized ,
3307
- K : Hash + Eq ,
3308
3306
F : FnMut ( & V ) -> K ,
3309
3307
{
3310
3308
grouping_map:: new ( grouping_map:: new_map_for_grouping ( self , key_mapper) )
0 commit comments