Skip to content

Commit 4a6acd9

Browse files
ronnodasphimuemue
authored andcommitted
restricted to use_alloc
1 parent 36f1f40 commit 4a6acd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ pub mod structs {
9696
FilterOk, Interleave, InterleaveShortest, MapInto, MapOk, Positions, Product, PutBack,
9797
TakeWhileRef, TupleCombinations, Update, WhileSome,
9898
};
99+
#[cfg(feature = "use_alloc")]
99100
pub use crate::array_combinations::ArrayCombinations;
100101
#[cfg(feature = "use_alloc")]
101102
pub use crate::combinations::Combinations;
@@ -178,6 +179,7 @@ pub use crate::either_or_both::EitherOrBoth;
178179
pub mod free;
179180
#[doc(inline)]
180181
pub use crate::free::*;
182+
#[cfg(feature = "use_alloc")]
181183
mod array_combinations;
182184
#[cfg(feature = "use_alloc")]
183185
mod combinations;
@@ -1713,6 +1715,7 @@ pub trait Itertools: Iterator {
17131715
/// let it: ArrayCombinations<Range<u32>, 3> = (1..5).array_combinations();
17141716
/// itertools::assert_equal(it, vec![[1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 3, 4]]);
17151717
/// ```
1718+
#[cfg(feature = "use_alloc")]
17161719
fn array_combinations<const K: usize>(self) -> ArrayCombinations<Self, K>
17171720
where
17181721
Self: Sized + Clone,

0 commit comments

Comments
 (0)