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:
parent
13a08b0d54
commit
37f14b0195
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue