Skip to content

Commit 14bbacd

Browse files
committed
Stabilize stream::interval
1 parent e812663 commit 14bbacd

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/stream/interval.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ use crate::utils::{timer_after, Timer};
4141
/// #
4242
/// # Ok(()) }) }
4343
/// ```
44-
#[cfg(feature = "unstable")]
45-
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
4644
pub fn interval(dur: Duration) -> Interval {
4745
Interval {
4846
delay: timer_after(dur),
@@ -56,8 +54,6 @@ pub fn interval(dur: Duration) -> Interval {
5654
/// documentation for more.
5755
///
5856
/// [`interval`]: fn.interval.html
59-
#[cfg(feature = "unstable")]
60-
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
6157
#[derive(Debug)]
6258
pub struct Interval {
6359
delay: Timer,

src/stream/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@
303303
pub use empty::{empty, Empty};
304304
pub use from_fn::{from_fn, FromFn};
305305
pub use from_iter::{from_iter, FromIter};
306+
pub use interval::{interval, Interval};
306307
pub use once::{once, Once};
307308
pub use repeat::{repeat, Repeat};
308309
pub use repeat_with::{repeat_with, RepeatWith};
@@ -313,6 +314,7 @@ pub(crate) mod stream;
313314
mod empty;
314315
mod from_fn;
315316
mod from_iter;
317+
mod interval;
316318
mod once;
317319
mod repeat;
318320
mod repeat_with;
@@ -323,7 +325,6 @@ cfg_unstable! {
323325
mod extend;
324326
mod from_stream;
325327
mod fused_stream;
326-
mod interval;
327328
mod into_stream;
328329
mod pending;
329330
mod product;
@@ -335,7 +336,6 @@ cfg_unstable! {
335336
pub use extend::{extend, Extend};
336337
pub use from_stream::FromStream;
337338
pub use fused_stream::FusedStream;
338-
pub use interval::{interval, Interval};
339339
pub use into_stream::IntoStream;
340340
pub use pending::{pending, Pending};
341341
pub use product::Product;

0 commit comments

Comments
 (0)