Skip to content

Commit bc38214

Browse files
committed
fix warning by using iter() instead of into_iter()
Change into_iter() to iter() in impl_zip_iter macro to avoid the compliation warning related to s://github.com/rust-lang/rust/issues/66145.
1 parent 180c4e0 commit bc38214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ziptuple.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ macro_rules! impl_zip_iter {
108108
#[inline]
109109
fn next_back(&mut self) -> Option<Self::Item> {
110110
let ($(ref mut $B,)*) = self.t;
111-
let size = *[$( $B.len(), )*].into_iter().min().unwrap();
111+
let size = *[$( $B.len(), )*].iter().min().unwrap();
112112

113113
$(
114114
if $B.len() != size {

0 commit comments

Comments
 (0)