aboutsummaryrefslogtreecommitdiff
path: root/src/cons_tuples_impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cons_tuples_impl.rs')
-rw-r--r--src/cons_tuples_impl.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cons_tuples_impl.rs b/src/cons_tuples_impl.rs
index 3cdfe0d..ae0f48f 100644
--- a/src/cons_tuples_impl.rs
+++ b/src/cons_tuples_impl.rs
@@ -35,7 +35,7 @@ macro_rules! impl_cons_iter(
);
);
-impl_cons_iter!(A, B, C, D, E, F, G, H,);
+impl_cons_iter!(A, B, C, D, E, F, G, H, I, J, K, L,);
/// An iterator that maps an iterator of tuples like
/// `((A, B), C)` to an iterator of `(A, B, C)`.
@@ -57,8 +57,8 @@ impl<I, J> Clone for ConsTuples<I, J>
/// Create an iterator that maps for example iterators of
/// `((A, B), C)` to `(A, B, C)`.
-pub fn cons_tuples<I, J>(iterable: I) -> ConsTuples<I, J>
- where I: Iterator<Item=J>
+pub fn cons_tuples<I, J>(iterable: I) -> ConsTuples<I::IntoIter, J>
+ where I: IntoIterator<Item=J>
{
ConsTuples { iter: iterable.into_iter() }
}