Skip to content

Commit 8a562f8

Browse files
committed
Free function should take IntoIterator
1 parent 9dfac5c commit 8a562f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cons_tuples_impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ impl<I, J> Clone for ConsTuples<I, J>
5757

5858
/// Create an iterator that maps for example iterators of
5959
/// `((A, B), C)` to `(A, B, C)`.
60-
pub fn cons_tuples<I, J>(iterable: I) -> ConsTuples<I, J>
61-
where I: Iterator<Item=J>
60+
pub fn cons_tuples<I, J>(iterable: I) -> ConsTuples<I::IntoIter, J>
61+
where I: IntoIterator<Item=J>
6262
{
6363
ConsTuples { iter: iterable.into_iter() }
6464
}

0 commit comments

Comments
 (0)