Skip to content

Commit 116f632

Browse files
committed
deprecated's since should be semver
1 parent bde7c45 commit 116f632

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/adaptors/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ where
6868
pub type MapOk<I, F> = MapSpecialCase<I, MapSpecialCaseFnOk<F>>;
6969

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

7474
impl<F, T, U, E> MapSpecialCaseFn<Result<T, E>> for MapSpecialCaseFnOk<F>

src/adaptors/mod.rs

Lines changed: 1 addition & 1 deletion
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"]

src/lib.rs

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

753753
/// See [`.map_ok()`](#method.map_ok).
754-
#[deprecated(note="Use .map_ok() instead", since="0.10")]
754+
#[deprecated(note="Use .map_ok() instead", since="0.10.0")]
755755
fn map_results<F, T, U, E>(self, f: F) -> MapOk<Self, F>
756756
where Self: Iterator<Item = Result<T, E>> + Sized,
757757
F: FnMut(T) -> U,
@@ -1651,7 +1651,7 @@ pub trait Itertools : Iterator {
16511651
///
16521652
/// itertools::assert_equal(rx.iter(), vec![1, 3, 5, 7, 9]);
16531653
/// ```
1654-
#[deprecated(note="Use .for_each() instead", since="0.8")]
1654+
#[deprecated(note="Use .for_each() instead", since="0.8.0")]
16551655
fn foreach<F>(self, f: F)
16561656
where F: FnMut(Self::Item),
16571657
Self: Sized,
@@ -1839,7 +1839,7 @@ pub trait Itertools : Iterator {
18391839
}
18401840

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