Skip to content

Commit f6e349a

Browse files
mendelsshopphimuemue
authored andcommitted
Removed cfg(feature="use_alloc") from combinations and
`combinations_with_replacements` as they are done at a module level right now.
1 parent ef5805a commit f6e349a

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/combinations.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[cfg(feature = "use_alloc")]
21
use alloc::boxed::Box;
32
use core::array;
43
use core::borrow::BorrowMut;
@@ -54,7 +53,6 @@ pub trait PoolIndex<T>: BorrowMut<[usize]> {
5453
self.borrow().len()
5554
}
5655
}
57-
#[cfg(feature = "use_alloc")]
5856
impl<T> PoolIndex<T> for Box<[usize]> {
5957
type Item = Vec<T>;
6058

src/combinations_with_replacement.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[cfg(feature = "use_alloc")]
21
use alloc::boxed::Box;
32
use std::fmt;
43
use std::iter::FusedIterator;
@@ -22,7 +21,6 @@ where
2221
first: bool,
2322
}
2423

25-
#[cfg(feature = "use_alloc")]
2624
/// Iterator for `Box<[I]>` valued combinations_with_replacement returned by [`.combinations_with_replacement()`](crate::Itertools::combinations_with_replacement)
2725
pub type CombinationsWithReplacement<I> = CombinationsWithReplacementGeneric<I, Box<[usize]>>;
2826
/// Iterator for const generic combinations_with_replacement returned by [`.array_combinations_with_replacement()`](crate::Itertools::array_combinations_with_replacement)
@@ -47,7 +45,6 @@ where
4745
{
4846
ArrayCombinationsWithReplacement::new(iter, [0; K])
4947
}
50-
#[cfg(feature = "use_alloc")]
5148
/// Create a new `CombinationsWithReplacement` from a clonable iterator.
5249
pub fn combinations_with_replacement<I>(iter: I, k: usize) -> CombinationsWithReplacement<I>
5350
where

0 commit comments

Comments
 (0)