Narrow the disclosure range of FlattenCompat::new

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

@ -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,

Loading…
Cancel
Save