Skip to content

Commit e430851

Browse files
committed
export Filter type
1 parent e7ae10e commit e430851

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/stream/stream/filter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use std::pin::Pin;
44
use crate::stream::Stream;
55
use crate::task::{Context, Poll};
66

7-
#[doc(hidden)]
8-
#[allow(missing_debug_implementations)]
7+
/// A stream to filter elements of another stream with a predicate.
8+
#[derive(Debug)]
99
pub struct Filter<S, P, T> {
1010
stream: S,
1111
predicate: P,

src/stream/stream/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ mod scan;
3737
mod take;
3838
mod zip;
3939

40+
pub use filter::Filter;
4041
pub use fuse::Fuse;
4142
pub use scan::Scan;
4243
pub use take::Take;
@@ -45,7 +46,6 @@ pub use zip::Zip;
4546
use all::AllFuture;
4647
use any::AnyFuture;
4748
use enumerate::Enumerate;
48-
use filter::Filter;
4949
use filter_map::FilterMap;
5050
use find::FindFuture;
5151
use find_map::FindMapFuture;

0 commit comments

Comments
 (0)