@@ -70,7 +70,6 @@ use std::hash::Hash;
70
70
use std:: iter:: { once, IntoIterator } ;
71
71
#[ cfg( feature = "use_alloc" ) ]
72
72
type VecIntoIter < T > = alloc:: vec:: IntoIter < T > ;
73
- #[ cfg( feature = "use_alloc" ) ]
74
73
use std:: iter:: FromIterator ;
75
74
76
75
#[ macro_use]
@@ -178,7 +177,7 @@ mod diff;
178
177
#[ cfg( feature = "use_std" ) ]
179
178
mod duplicates_impl;
180
179
mod exactly_one_err;
181
- #[ cfg( feature = "use_std " ) ]
180
+ #[ cfg( feature = "use_alloc " ) ]
182
181
mod extrema_set;
183
182
mod flatten_ok;
184
183
mod format;
@@ -2214,7 +2213,6 @@ pub trait Itertools: Iterator {
2214
2213
/// Ok(())
2215
2214
/// }
2216
2215
/// ```
2217
- #[ cfg( feature = "use_alloc" ) ]
2218
2216
fn try_collect < T , U , E > ( self ) -> Result < U , E >
2219
2217
where
2220
2218
Self : Sized + Iterator < Item = Result < T , E > > ,
@@ -3171,7 +3169,7 @@ pub trait Itertools: Iterator {
3171
3169
///
3172
3170
/// The elements can be floats but no particular result is guaranteed
3173
3171
/// if an element is NaN.
3174
- #[ cfg( feature = "use_std " ) ]
3172
+ #[ cfg( feature = "use_alloc " ) ]
3175
3173
fn min_set ( self ) -> Vec < Self :: Item >
3176
3174
where
3177
3175
Self : Sized ,
@@ -3204,7 +3202,7 @@ pub trait Itertools: Iterator {
3204
3202
///
3205
3203
/// The elements can be floats but no particular result is guaranteed
3206
3204
/// if an element is NaN.
3207
- #[ cfg( feature = "use_std " ) ]
3205
+ #[ cfg( feature = "use_alloc " ) ]
3208
3206
fn min_set_by < F > ( self , mut compare : F ) -> Vec < Self :: Item >
3209
3207
where
3210
3208
Self : Sized ,
@@ -3236,7 +3234,7 @@ pub trait Itertools: Iterator {
3236
3234
///
3237
3235
/// The elements can be floats but no particular result is guaranteed
3238
3236
/// if an element is NaN.
3239
- #[ cfg( feature = "use_std " ) ]
3237
+ #[ cfg( feature = "use_alloc " ) ]
3240
3238
fn min_set_by_key < K , F > ( self , key : F ) -> Vec < Self :: Item >
3241
3239
where
3242
3240
Self : Sized ,
@@ -3268,7 +3266,7 @@ pub trait Itertools: Iterator {
3268
3266
///
3269
3267
/// The elements can be floats but no particular result is guaranteed
3270
3268
/// if an element is NaN.
3271
- #[ cfg( feature = "use_std " ) ]
3269
+ #[ cfg( feature = "use_alloc " ) ]
3272
3270
fn max_set ( self ) -> Vec < Self :: Item >
3273
3271
where
3274
3272
Self : Sized ,
@@ -3301,7 +3299,7 @@ pub trait Itertools: Iterator {
3301
3299
///
3302
3300
/// The elements can be floats but no particular result is guaranteed
3303
3301
/// if an element is NaN.
3304
- #[ cfg( feature = "use_std " ) ]
3302
+ #[ cfg( feature = "use_alloc " ) ]
3305
3303
fn max_set_by < F > ( self , mut compare : F ) -> Vec < Self :: Item >
3306
3304
where
3307
3305
Self : Sized ,
@@ -3333,7 +3331,7 @@ pub trait Itertools: Iterator {
3333
3331
///
3334
3332
/// The elements can be floats but no particular result is guaranteed
3335
3333
/// if an element is NaN.
3336
- #[ cfg( feature = "use_std " ) ]
3334
+ #[ cfg( feature = "use_alloc " ) ]
3337
3335
fn max_set_by_key < K , F > ( self , key : F ) -> Vec < Self :: Item >
3338
3336
where
3339
3337
Self : Sized ,
0 commit comments