Skip to content

Commit

Permalink
Remove deprecated Itertools::fold_results
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet committed Feb 13, 2024
1 parent c9cf95a commit b2ea41a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2322,16 +2322,6 @@ pub trait Itertools: Iterator {
format::new_format(self, sep, format)
}

/// See [`.fold_ok()`](Itertools::fold_ok).
#[deprecated(note = "Use .fold_ok() instead", since = "0.10.0")]
fn fold_results<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
where
Self: Iterator<Item = Result<A, E>>,
F: FnMut(B, A) -> B,
{
self.fold_ok(start, f)
}

/// Fold `Result` values from an iterator.
///
/// Only `Ok` values are folded. If no error is encountered, the folded
Expand Down

0 comments on commit b2ea41a

Please sign in to comment.