Skip to content

Commit a42ae2f

Browse files
k-nasataiki-e
andauthored
Narrow the disclosure range of FlattenCompat::new
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
1 parent 37f14b0 commit a42ae2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stream/stream/flatten.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pin_project! {
9898

9999
impl<S, U> FlattenCompat<S, U> {
100100
/// Adapts an iterator by flattening it, for use in `flatten()` and `flat_map()`.
101-
pub fn new(stream: S) -> FlattenCompat<S, U> {
101+
fn new(stream: S) -> FlattenCompat<S, U> {
102102
FlattenCompat {
103103
stream,
104104
frontiter: None,

0 commit comments

Comments
 (0)