Skip to content

Commit 2a8a764

Browse files
committed
deprecated's since should be semver
1 parent 1396651 commit 2a8a764

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/adaptors/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ impl<B, F, I> Iterator for Batching<I, F>
412412
/// then skipping forward *n-1* elements.
413413
///
414414
/// See [`.step()`](../trait.Itertools.html#method.step) for more information.
415-
#[deprecated(note="Use std .step_by() instead", since="0.8")]
415+
#[deprecated(note="Use std .step_by() instead", since="0.8.0")]
416416
#[allow(deprecated)]
417417
#[derive(Clone, Debug)]
418418
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
@@ -1079,7 +1079,7 @@ where
10791079
{}
10801080

10811081
/// See [`MapOk`](struct.MapOk.html).
1082-
#[deprecated(note="Use MapOk instead", since="0.10")]
1082+
#[deprecated(note="Use MapOk instead", since="0.10.0")]
10831083
pub type MapResults<I, F> = MapOk<I, F>;
10841084

10851085
/// An iterator adapter to apply a transformation within a nested `Result::Ok`.

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ pub trait Itertools : Iterator {
726726
/// let it = (0..8).step(3);
727727
/// itertools::assert_equal(it, vec![0, 3, 6]);
728728
/// ```
729-
#[deprecated(note="Use std .step_by() instead", since="0.8")]
729+
#[deprecated(note="Use std .step_by() instead", since="0.8.0")]
730730
#[allow(deprecated)]
731731
fn step(self, n: usize) -> Step<Self>
732732
where Self: Sized
@@ -749,7 +749,7 @@ pub trait Itertools : Iterator {
749749
}
750750

751751
/// See [`.map_ok()`](#method.map_ok).
752-
#[deprecated(note="Use .map_ok() instead", since="0.10")]
752+
#[deprecated(note="Use .map_ok() instead", since="0.10.0")]
753753
fn map_results<F, T, U, E>(self, f: F) -> MapOk<Self, F>
754754
where Self: Iterator<Item = Result<T, E>> + Sized,
755755
F: FnMut(T) -> U,
@@ -1653,7 +1653,7 @@ pub trait Itertools : Iterator {
16531653
///
16541654
/// itertools::assert_equal(rx.iter(), vec![1, 3, 5, 7, 9]);
16551655
/// ```
1656-
#[deprecated(note="Use .for_each() instead", since="0.8")]
1656+
#[deprecated(note="Use .for_each() instead", since="0.8.0")]
16571657
fn foreach<F>(self, f: F)
16581658
where F: FnMut(Self::Item),
16591659
Self: Sized,
@@ -1841,7 +1841,7 @@ pub trait Itertools : Iterator {
18411841
}
18421842

18431843
/// See [`.fold_ok()`](#method.fold_ok).
1844-
#[deprecated(note="Use .fold_ok() instead", since="0.10")]
1844+
#[deprecated(note="Use .fold_ok() instead", since="0.10.0")]
18451845
fn fold_results<A, E, B, F>(&mut self, start: B, f: F) -> Result<B, E>
18461846
where Self: Iterator<Item = Result<A, E>>,
18471847
F: FnMut(B, A) -> B
@@ -2101,7 +2101,7 @@ pub trait Itertools : Iterator {
21012101
/// The big difference between the computations of `result2` and `result3` is that while
21022102
/// `fold()` called the provided closure for every item of the callee iterator,
21032103
/// `fold_while()` actually stopped iterating as soon as it encountered `Fold::Done(_)`.
2104-
#[deprecated(note="Use .try_fold() instead", since="0.8")]
2104+
#[deprecated(note="Use .try_fold() instead", since="0.8.0")]
21052105
fn fold_while<B, F>(&mut self, init: B, mut f: F) -> FoldWhile<B>
21062106
where Self: Sized,
21072107
F: FnMut(B, Self::Item) -> FoldWhile<B>

src/sources.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::mem;
77

88
/// See [`repeat_call`](../fn.repeat_call.html) for more information.
99
#[derive(Clone)]
10-
#[deprecated(note="Use std repeat_with() instead", since="0.8")]
10+
#[deprecated(note="Use std repeat_with() instead", since="0.8.0")]
1111
pub struct RepeatCall<F> {
1212
f: F,
1313
}
@@ -39,7 +39,7 @@ impl<F> fmt::Debug for RepeatCall<F>
3939
/// vec![1, 1, 1, 1, 1]
4040
/// );
4141
/// ```
42-
#[deprecated(note="Use std repeat_with() instead", since="0.8")]
42+
#[deprecated(note="Use std repeat_with() instead", since="0.8.0")]
4343
pub fn repeat_call<F, A>(function: F) -> RepeatCall<F>
4444
where F: FnMut() -> A
4545
{

0 commit comments

Comments
 (0)