@@ -70,7 +70,6 @@ use std::hash::Hash;
7070use  std:: iter:: { once,  IntoIterator } ; 
7171#[ cfg( feature = "use_alloc" ) ]  
7272type  VecIntoIter < T >  = alloc:: vec:: IntoIter < T > ; 
73- #[ cfg( feature = "use_alloc" ) ]  
7473use  std:: iter:: FromIterator ; 
7574
7675#[ macro_use]  
@@ -178,7 +177,7 @@ mod diff;
178177#[ cfg( feature = "use_std" ) ]  
179178mod  duplicates_impl; 
180179mod  exactly_one_err; 
181- #[ cfg( feature = "use_std " ) ]  
180+ #[ cfg( feature = "use_alloc " ) ]  
182181mod  extrema_set; 
183182mod  flatten_ok; 
184183mod  format; 
@@ -2214,7 +2213,6 @@ pub trait Itertools: Iterator {
22142213     ///     Ok(()) 
22152214     /// } 
22162215     /// ``` 
2217-      #[ cfg( feature = "use_alloc" ) ]  
22182216     fn  try_collect < T ,  U ,  E > ( self )  -> Result < U ,  E > 
22192217    where 
22202218        Self :  Sized  + Iterator < Item  = Result < T ,  E > > , 
@@ -3171,7 +3169,7 @@ pub trait Itertools: Iterator {
31713169     /// 
31723170     /// The elements can be floats but no particular result is guaranteed 
31733171     /// if an element is NaN. 
3174-      #[ cfg( feature = "use_std " ) ]  
3172+      #[ cfg( feature = "use_alloc " ) ]  
31753173    fn  min_set ( self )  -> Vec < Self :: Item > 
31763174    where 
31773175        Self :  Sized , 
@@ -3204,7 +3202,7 @@ pub trait Itertools: Iterator {
32043202     /// 
32053203     /// The elements can be floats but no particular result is guaranteed 
32063204     /// if an element is NaN. 
3207-      #[ cfg( feature = "use_std " ) ]  
3205+      #[ cfg( feature = "use_alloc " ) ]  
32083206    fn  min_set_by < F > ( self ,  mut  compare :  F )  -> Vec < Self :: Item > 
32093207    where 
32103208        Self :  Sized , 
@@ -3236,7 +3234,7 @@ pub trait Itertools: Iterator {
32363234     /// 
32373235     /// The elements can be floats but no particular result is guaranteed 
32383236     /// if an element is NaN. 
3239-      #[ cfg( feature = "use_std " ) ]  
3237+      #[ cfg( feature = "use_alloc " ) ]  
32403238    fn  min_set_by_key < K ,  F > ( self ,  key :  F )  -> Vec < Self :: Item > 
32413239    where 
32423240        Self :  Sized , 
@@ -3268,7 +3266,7 @@ pub trait Itertools: Iterator {
32683266     /// 
32693267     /// The elements can be floats but no particular result is guaranteed 
32703268     /// if an element is NaN. 
3271-      #[ cfg( feature = "use_std " ) ]  
3269+      #[ cfg( feature = "use_alloc " ) ]  
32723270    fn  max_set ( self )  -> Vec < Self :: Item > 
32733271    where 
32743272        Self :  Sized , 
@@ -3301,7 +3299,7 @@ pub trait Itertools: Iterator {
33013299     /// 
33023300     /// The elements can be floats but no particular result is guaranteed 
33033301     /// if an element is NaN. 
3304-      #[ cfg( feature = "use_std " ) ]  
3302+      #[ cfg( feature = "use_alloc " ) ]  
33053303    fn  max_set_by < F > ( self ,  mut  compare :  F )  -> Vec < Self :: Item > 
33063304    where 
33073305        Self :  Sized , 
@@ -3333,7 +3331,7 @@ pub trait Itertools: Iterator {
33333331     /// 
33343332     /// The elements can be floats but no particular result is guaranteed 
33353333     /// if an element is NaN. 
3336-      #[ cfg( feature = "use_std " ) ]  
3334+      #[ cfg( feature = "use_alloc " ) ]  
33373335    fn  max_set_by_key < K ,  F > ( self ,  key :  F )  -> Vec < Self :: Item > 
33383336    where 
33393337        Self :  Sized , 
0 commit comments