Skip to content

Commit 3de6d24

Browse files
Philippe-Choletjswrenn
authored andcommitted
try_collect without use_alloc
We can want to collect to a stack-based structure such as `arrayvec`.
1 parent a9aaeb4 commit 3de6d24

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ use std::hash::Hash;
7070
use std::iter::{once, IntoIterator};
7171
#[cfg(feature = "use_alloc")]
7272
type VecIntoIter<T> = alloc::vec::IntoIter<T>;
73-
#[cfg(feature = "use_alloc")]
7473
use std::iter::FromIterator;
7574

7675
#[macro_use]
@@ -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>>,

0 commit comments

Comments
 (0)