Skip to content

Commit

Permalink
fix warning by using iter() instead of into_iter()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dmitris committed Sep 20, 2020
1 parent 180c4e0 commit bc38214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ziptuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ macro_rules! impl_zip_iter {
#[inline]
fn next_back(&mut self) -> Option<Self::Item> {
let ($(ref mut $B,)*) = self.t;
let size = *[$( $B.len(), )*].into_iter().min().unwrap();
let size = *[$( $B.len(), )*].iter().min().unwrap();

$(
if $B.len() != size {
Expand Down

0 comments on commit bc38214

Please sign in to comment.