2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-24 13:19:41 +00:00

Narrow the disclosure range of FlattenCompat::new

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

View file

@ -98,7 +98,7 @@ pin_project! {
impl<S, U> FlattenCompat<S, U> {
/// Adapts an iterator by flattening it, for use in `flatten()` and `flat_map()`.
pub fn new(stream: S) -> FlattenCompat<S, U> {
fn new(stream: S) -> FlattenCompat<S, U> {
FlattenCompat {
stream,
frontiter: None,