diff --git a/src/stream/stream/mod.rs b/src/stream/stream/mod.rs index 54443125..6aa92c7e 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; +pub use skip_while::SkipWhile; 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_while::SkipWhile; use std::cmp::Ordering; use std::marker::PhantomData; diff --git a/src/stream/stream/skip_while.rs b/src/stream/stream/skip_while.rs index 59f564a2..a54b0510 100644 --- a/src/stream/stream/skip_while.rs +++ b/src/stream/stream/skip_while.rs @@ -4,8 +4,8 @@ use std::pin::Pin; use crate::stream::Stream; use crate::task::{Context, Poll}; -#[doc(hidden)] -#[allow(missing_debug_implementations)] +/// A stream to skip elements of another stream based on a predicate. +#[derive(Debug)] pub struct SkipWhile { stream: S, predicate: Option

,