File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ pub mod structs {
95
95
#[ cfg( feature = "use_std" ) ]
96
96
pub use rciter_impl:: RcIter ;
97
97
pub use repeatn:: RepeatN ;
98
+ #[ allow( deprecated) ]
98
99
pub use sources:: { RepeatCall , Unfold , Iterate } ;
99
100
#[ cfg( feature = "use_std" ) ]
100
101
pub use tee:: Tee ;
@@ -118,6 +119,7 @@ pub use minmax::MinMaxResult;
118
119
pub use peeking_take_while:: PeekingNext ;
119
120
pub use process_results_impl:: process_results;
120
121
pub use repeatn:: repeat_n;
122
+ #[ allow( deprecated) ]
121
123
pub use sources:: { repeat_call, unfold, iterate} ;
122
124
pub use with_position:: Position ;
123
125
pub use ziptuple:: multizip;
Original file line number Diff line number Diff line change 1
1
//! Iterators that are sources (produce elements from parameters,
2
2
//! not from another iterator).
3
+ #![ allow( deprecated) ]
3
4
4
5
use std:: fmt;
5
6
use std:: mem;
6
7
7
8
/// See [`repeat_call`](../fn.repeat_call.html) for more information.
9
+ #[ deprecated( note="Use std repeat_with() instead" , since="0.8" ) ]
8
10
pub struct RepeatCall < F > {
9
11
f : F ,
10
12
}
@@ -36,6 +38,7 @@ impl<F> fmt::Debug for RepeatCall<F>
36
38
/// vec![1, 1, 1, 1, 1]
37
39
/// );
38
40
/// ```
41
+ #[ deprecated( note="Use std repeat_with() instead" , since="0.8" ) ]
39
42
pub fn repeat_call < F , A > ( function : F ) -> RepeatCall < F >
40
43
where F : FnMut ( ) -> A
41
44
{
You can’t perform that action at this time.
0 commit comments