Skip to content

Commit 9598760

Browse files
Remove deprecated Itertools::map_results
1 parent 6f8b2c0 commit 9598760

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

src/adaptors/map.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ where
6767
/// See [`.map_ok()`](crate::Itertools::map_ok) for more information.
6868
pub type MapOk<I, F> = MapSpecialCase<I, MapSpecialCaseFnOk<F>>;
6969

70-
/// See [`MapOk`].
71-
#[deprecated(note = "Use MapOk instead", since = "0.10.0")]
72-
pub type MapResults<I, F> = MapOk<I, F>;
73-
7470
impl<F, T, U, E> MapSpecialCaseFn<Result<T, E>> for MapSpecialCaseFnOk<F>
7571
where
7672
F: FnMut(T) -> U,

src/adaptors/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ mod coalesce;
88
pub(crate) mod map;
99
mod multi_product;
1010
pub use self::coalesce::*;
11-
#[allow(deprecated)]
12-
pub use self::map::MapResults;
1311
pub use self::map::{map_into, map_ok, MapInto, MapOk};
1412
#[cfg(feature = "use_alloc")]
1513
pub use self::multi_product::*;

src/lib.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ pub use std::iter as __std_iter;
8080

8181
/// The concrete iterator types.
8282
pub mod structs {
83-
#[allow(deprecated)]
84-
pub use crate::adaptors::MapResults;
8583
#[cfg(feature = "use_alloc")]
8684
pub use crate::adaptors::MultiProduct;
8785
pub use crate::adaptors::{
@@ -829,16 +827,6 @@ pub trait Itertools: Iterator {
829827
adaptors::map_into(self)
830828
}
831829

832-
/// See [`.map_ok()`](Itertools::map_ok).
833-
#[deprecated(note = "Use .map_ok() instead", since = "0.10.0")]
834-
fn map_results<F, T, U, E>(self, f: F) -> MapOk<Self, F>
835-
where
836-
Self: Iterator<Item = Result<T, E>> + Sized,
837-
F: FnMut(T) -> U,
838-
{
839-
self.map_ok(f)
840-
}
841-
842830
/// Return an iterator adaptor that applies the provided closure
843831
/// to every `Result::Ok` value. `Result::Err` values are
844832
/// unchanged.

0 commit comments

Comments
 (0)