File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,11 @@ where
102
102
T : ' a + Copy ,
103
103
{
104
104
type Item = T ;
105
- type IntoIter = iter:: Map < P :: IntoIter , fn ( & T ) -> T > ;
105
+ type IntoIter = iter:: Cloned < P :: IntoIter > ;
106
106
107
107
fn into_iter ( self ) -> Self :: IntoIter {
108
108
// FIXME: use `Iterator::copied()` when Rust 1.36 is our minimum.
109
- self . base . into_iter ( ) . map ( | & x| x )
109
+ self . base . into_iter ( ) . cloned ( )
110
110
}
111
111
112
112
fn min_len ( & self ) -> usize {
@@ -211,7 +211,7 @@ where
211
211
I : IntoIterator < Item = & ' a T > ,
212
212
{
213
213
// FIXME: use `Iterator::copied()` when Rust 1.36 is our minimum.
214
- self . base = self . base . consume_iter ( iter. into_iter ( ) . map ( | & x| x ) ) ;
214
+ self . base = self . base . consume_iter ( iter. into_iter ( ) . cloned ( ) ) ;
215
215
self
216
216
}
217
217
You can’t perform that action at this time.
0 commit comments