Narrow the disclosure range of Flatten::new

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

@ -64,7 +64,7 @@ where
S: Stream,
S::Item: IntoStream,
{
pub fn new(stream: S) -> Flatten<S, S::Item> {
pub(super) fn new(stream: S) -> Flatten<S, S::Item> {
Flatten {
inner: FlattenCompat::new(stream),
}

Loading…
Cancel
Save