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 the potentially upcoming
incompatibility with array.into_iter()
rust-lang/rust#66145.
  • Loading branch information
dmitris committed Sep 20, 2020
1 parent c0c4ef8 commit 2dbfaf8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ziptuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ pub struct Zip<T> {
/// assert_eq!(results, [0 + 3, 10 + 7, 29, 36]);
/// ```
pub fn multizip<T, U>(t: U) -> Zip<T>
where
Zip<T>: From<U>,
Zip<T>: Iterator,
where Zip<T>: From<U>,
Zip<T>: Iterator,
{
Zip::from(t)
}
Expand Down

0 comments on commit 2dbfaf8

Please sign in to comment.