mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-11 19:06:44 +00:00
Narrow the disclosure range of FlatMap::new
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
This commit is contained in:
parent
61b7a09c70
commit
13a08b0d54
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ where
|
||||||
U: IntoStream,
|
U: IntoStream,
|
||||||
F: FnMut(S::Item) -> U,
|
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 {
|
FlatMap {
|
||||||
inner: FlattenCompat::new(stream.map(f)),
|
inner: FlattenCompat::new(stream.map(f)),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue