Skip to content

Commit 0c5abee

Browse files
committed
to unstable stream::flat_map, stream::flatten
1 parent 001368d commit 0c5abee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/stream/stream/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ mod filter;
3030
mod filter_map;
3131
mod find;
3232
mod find_map;
33-
mod flatten;
3433
mod fold;
3534
mod for_each;
3635
mod fuse;
@@ -78,7 +77,6 @@ use try_for_each::TryForEeachFuture;
7877

7978
pub use chain::Chain;
8079
pub use filter::Filter;
81-
pub use flatten::{FlatMap, Flatten};
8280
pub use fuse::Fuse;
8381
pub use inspect::Inspect;
8482
pub use map::Map;
@@ -101,8 +99,10 @@ cfg_unstable! {
10199
use crate::stream::into_stream::IntoStream;
102100

103101
pub use merge::Merge;
102+
pub use flatten::{FlatMap, Flatten};
104103

105104
mod merge;
105+
mod flatten;
106106
}
107107

108108
extension_trait! {
@@ -588,6 +588,8 @@ extension_trait! {
588588
# });
589589
```
590590
"#]
591+
#[cfg(feature = "unstable")]
592+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
591593
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, Self::Item, F>
592594
where
593595
Self: Sized,
@@ -620,6 +622,8 @@ extension_trait! {
620622
621623
# });
622624
"#]
625+
#[cfg(feature = "unstable")]
626+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
623627
fn flatten(self) -> Flatten<Self, Self::Item>
624628
where
625629
Self: Sized,

0 commit comments

Comments
 (0)