Skip to content

Commit d2e254f

Browse files
committed
API: Fix the mystery deprecation message for Step
1 parent 602f2f6 commit d2e254f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/adaptors/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,10 @@ impl<B, F, I> Iterator for Batching<I, F>
407407
/// then skipping forward *n-1* elements.
408408
///
409409
/// See [`.step()`](../trait.Itertools.html#method.step) for more information.
410+
#[deprecated(note="Use std .step_by() instead", since="0.8")]
411+
#[allow(deprecated)]
410412
#[derive(Clone, Debug)]
411413
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
412-
#[deprecated(note="Use std .step_by() instead", since="0.8")]
413414
pub struct Step<I> {
414415
iter: Fuse<I>,
415416
skip: usize,

0 commit comments

Comments
 (0)