2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00

Narrow the disclosure range of Flatten::new

Co-Authored-By: Taiki Endo <te316e89@gmail.com>
This commit is contained in:
nasa 2019-10-27 12:35:32 +09:00 committed by GitHub
parent 13a08b0d54
commit 37f14b0195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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