Skip to content

Commit 13a08b0

Browse files
k-nasataiki-e
andauthored
Narrow the disclosure range of FlatMap::new
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
1 parent 61b7a09 commit 13a08b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream/stream/flatten.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ where
2525
U: IntoStream,
2626
F: FnMut(S::Item) -> U,
2727
{
28-
pub fn new(stream: S, f: F) -> FlatMap<S, U, S::Item, F> {
28+
pub(super) fn new(stream: S, f: F) -> FlatMap<S, U, S::Item, F> {
2929
FlatMap {
3030
inner: FlattenCompat::new(stream.map(f)),
3131
}

0 commit comments

Comments
 (0)