File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
use std:: iter:: Fuse ;
2
2
use super :: size_hint;
3
3
4
- #[ derive( Clone ) ]
5
4
/// An iterator adaptor to insert a particular value
6
5
/// between each element of the adapted iterator.
7
6
///
@@ -11,7 +10,7 @@ use super::size_hint;
11
10
///
12
11
/// See [`.intersperse()`](../trait.Itertools.html#method.intersperse) for more information.
13
12
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
14
- #[ derive( Debug ) ]
13
+ #[ derive( Clone , Debug ) ]
15
14
pub struct Intersperse < I >
16
15
where I : Iterator
17
16
{
@@ -87,7 +86,7 @@ impl<I> Iterator for Intersperse<I>
87
86
///
88
87
/// See [`.intersperse_with()`](../trait.Itertools.html#method.intersperse_with) for more information.
89
88
#[ must_use = "iterator adaptors are lazy and do nothing unless consumed" ]
90
- #[ derive( Debug ) ]
89
+ #[ derive( Clone , Debug ) ]
91
90
pub struct IntersperseWith < I , ElemF >
92
91
where I : Iterator ,
93
92
ElemF : FnMut ( ) -> I :: Item ,
You can’t perform that action at this time.
0 commit comments