Skip to content

Commit 4c09cdb

Browse files
committed
Mark successors as unstable
1 parent 243cdd7 commit 4c09cdb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/stream/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ mod from_iter;
317317
mod once;
318318
mod repeat;
319319
mod repeat_with;
320-
mod successors;
321320

322321
cfg_unstable! {
323322
mod double_ended_stream;
@@ -328,6 +327,7 @@ cfg_unstable! {
328327
mod interval;
329328
mod into_stream;
330329
mod product;
330+
mod successors;
331331
mod sum;
332332

333333
pub use double_ended_stream::DoubleEndedStream;
@@ -339,5 +339,6 @@ cfg_unstable! {
339339
pub use into_stream::IntoStream;
340340
pub use product::Product;
341341
pub use stream::Merge;
342+
pub use successors::{successors, Successors};
342343
pub use sum::Sum;
343344
}

src/stream/successors.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ pin_project! {
1616
/// This stream is constructed by [`successors`] function
1717
///
1818
/// [`succcessors`]: fn.succssors.html
19+
#[cfg(feature = "unstable")]
20+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
1921
#[derive(Debug)]
2022
pub struct Successors<F, Fut, T>
2123
where
@@ -65,6 +67,8 @@ pin_project! {
6567
/// # }) }
6668
///
6769
/// ```
70+
#[cfg(feature = "unstable")]
71+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
6872
pub fn successors<F, Fut, T>(first: Option<T>, succ: F) -> Successors<F, Fut, T>
6973
where
7074
F: FnMut(T) -> Fut,

0 commit comments

Comments
 (0)