Skip to content

Commit 2dbfaf8

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 the potentially upcoming incompatibility with array.into_iter() rust-lang/rust#66145.
1 parent c0c4ef8 commit 2dbfaf8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ziptuple.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ pub struct Zip<T> {
3939
/// assert_eq!(results, [0 + 3, 10 + 7, 29, 36]);
4040
/// ```
4141
pub fn multizip<T, U>(t: U) -> Zip<T>
42-
where
43-
Zip<T>: From<U>,
44-
Zip<T>: Iterator,
42+
where Zip<T>: From<U>,
43+
Zip<T>: Iterator,
4544
{
4645
Zip::from(t)
4746
}

0 commit comments

Comments
 (0)