File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ use crate::utils::{timer_after, Timer};
41
41
/// #
42
42
/// # Ok(()) }) }
43
43
/// ```
44
- #[ cfg( feature = "unstable" ) ]
45
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
46
44
pub fn interval ( dur : Duration ) -> Interval {
47
45
Interval {
48
46
delay : timer_after ( dur) ,
@@ -56,8 +54,6 @@ pub fn interval(dur: Duration) -> Interval {
56
54
/// documentation for more.
57
55
///
58
56
/// [`interval`]: fn.interval.html
59
- #[ cfg( feature = "unstable" ) ]
60
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
61
57
#[ derive( Debug ) ]
62
58
pub struct Interval {
63
59
delay : Timer ,
Original file line number Diff line number Diff line change 303
303
pub use empty:: { empty, Empty } ;
304
304
pub use from_fn:: { from_fn, FromFn } ;
305
305
pub use from_iter:: { from_iter, FromIter } ;
306
+ pub use interval:: { interval, Interval } ;
306
307
pub use once:: { once, Once } ;
307
308
pub use repeat:: { repeat, Repeat } ;
308
309
pub use repeat_with:: { repeat_with, RepeatWith } ;
@@ -313,6 +314,7 @@ pub(crate) mod stream;
313
314
mod empty;
314
315
mod from_fn;
315
316
mod from_iter;
317
+ mod interval;
316
318
mod once;
317
319
mod repeat;
318
320
mod repeat_with;
@@ -323,7 +325,6 @@ cfg_unstable! {
323
325
mod extend;
324
326
mod from_stream;
325
327
mod fused_stream;
326
- mod interval;
327
328
mod into_stream;
328
329
mod pending;
329
330
mod product;
@@ -335,7 +336,6 @@ cfg_unstable! {
335
336
pub use extend:: { extend, Extend } ;
336
337
pub use from_stream:: FromStream ;
337
338
pub use fused_stream:: FusedStream ;
338
- pub use interval:: { interval, Interval } ;
339
339
pub use into_stream:: IntoStream ;
340
340
pub use pending:: { pending, Pending } ;
341
341
pub use product:: Product ;
You can’t perform that action at this time.
0 commit comments