Skip to content

Commit 6690f1b

Browse files
author
root
committed
Undeprecate fn_map and put deprecation messages in doc text instead.
1 parent 90bd231 commit 6690f1b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/adaptors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ impl<I: Iterator, J> Iterator for Interleave<I, J> where
6666
/// Created with `.fn_map(..)` on an iterator
6767
///
6868
/// Iterator element type is `B`
69-
#[deprecated]
7069
pub struct FnMap<B, I: Iterator>
7170
{
7271
map: fn(I::Item) -> B,

src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ pub macro_rules! iproduct {
106106
);
107107
}
108108

109-
#[deprecated="izip!() is deprecated, use Zip::new instead"]
110109
#[macro_export]
111-
/// *This macro is deprecated, use* **Zip::new** *instead.*
110+
/// **Note: This macro is deprecated, use* **Zip::new** *instead.**
112111
///
113112
/// Create an iterator running multiple iterators in lockstep.
114113
///
@@ -184,7 +183,6 @@ pub trait Itertools : Iterator {
184183
/// so that the resulting **FnMap** iterator value can be cloned.
185184
///
186185
/// Iterator element type is **B**.
187-
#[deprecated="Use libstd .map() instead"]
188186
fn fn_map<B>(self, map: fn(Self::Item) -> B) -> FnMap<B, Self> where
189187
Self: Sized
190188
{
@@ -484,10 +482,11 @@ pub trait Itertools : Iterator {
484482
for _ in *self { /* nothing */ }
485483
}
486484

487-
#[deprecated="Use .foreach() instead"]
488485
/// Run the closure **f** eagerly on each element of the iterator.
489486
///
490487
/// Consumes the iterator until its end.
488+
///
489+
/// **Note: This method is deprecated, use .foreach() instead.**
491490
fn apply<F: FnMut(Self::Item)>(&mut self, f: F)
492491
{
493492
self.foreach(f)

0 commit comments

Comments
 (0)