From 75da138696b495b65775aab356ad8146f1c2b8e8 Mon Sep 17 00:00:00 2001 From: Fedor Sakharov Date: Sat, 21 Sep 2019 16:37:30 +0300 Subject: [PATCH] export Skip type --- src/stream/stream/mod.rs | 2 +- src/stream/stream/skip.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stream/stream/mod.rs b/src/stream/stream/mod.rs index 5f4010c..6444651 100644 --- a/src/stream/stream/mod.rs +++ b/src/stream/stream/mod.rs @@ -39,6 +39,7 @@ mod zip; pub use fuse::Fuse; pub use scan::Scan; +use skip::Skip; pub use take::Take; pub use zip::Zip; @@ -52,7 +53,6 @@ use fold::FoldFuture; use min_by::MinByFuture; use next::NextFuture; use nth::NthFuture; -use skip::Skip; use std::cmp::Ordering; use std::marker::PhantomData; diff --git a/src/stream/stream/skip.rs b/src/stream/stream/skip.rs index 09f5cab..8a2d966 100644 --- a/src/stream/stream/skip.rs +++ b/src/stream/stream/skip.rs @@ -3,8 +3,8 @@ use std::task::{Context, Poll}; use crate::stream::Stream; -#[doc(hidden)] -#[allow(missing_debug_implementations)] +/// A stream to skip first n elements of another stream. +#[derive(Debug)] pub struct Skip { stream: S, n: usize,