Skip to content

Commit

Permalink
try_collect without use_alloc
Browse files Browse the repository at this point in the history
We can want to collect to a stack-based structure such as `arrayvec`.
  • Loading branch information
Philippe-Cholet committed Sep 23, 2023
1 parent 6ffdac1 commit c46f78d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ use std::hash::Hash;
use std::iter::{once, IntoIterator};
#[cfg(feature = "use_alloc")]
type VecIntoIter<T> = alloc::vec::IntoIter<T>;
#[cfg(feature = "use_alloc")]
use std::iter::FromIterator;

#[macro_use]
Expand Down Expand Up @@ -2214,7 +2213,6 @@ pub trait Itertools: Iterator {
/// Ok(())
/// }
/// ```
#[cfg(feature = "use_alloc")]
fn try_collect<T, U, E>(self) -> Result<U, E>
where
Self: Sized + Iterator<Item = Result<T, E>>,
Expand Down

0 comments on commit c46f78d

Please sign in to comment.