Narrow the disclosure range of FlatMap::new

Co-Authored-By: Taiki Endo <te316e89@gmail.com>
pull/367/head
nasa 5 years ago committed by GitHub
parent 61b7a09c70
commit 13a08b0d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,7 @@ where
U: IntoStream,
F: FnMut(S::Item) -> U,
{
pub fn new(stream: S, f: F) -> FlatMap<S, U, S::Item, F> {
pub(super) fn new(stream: S, f: F) -> FlatMap<S, U, S::Item, F> {
FlatMap {
inner: FlattenCompat::new(stream.map(f)),
}

Loading…
Cancel
Save