Skip to content

Commit 25c1eff

Browse files
ronnodasjswrenn
authored andcommitted
remove Clone bound from tuple_combinations
1 parent d2510f4 commit 25c1eff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/adaptors/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ pub trait HasCombination<I>: Sized {
629629
/// Create a new `TupleCombinations` from a clonable iterator.
630630
pub fn tuple_combinations<T, I>(iter: I) -> TupleCombinations<I, T>
631631
where
632-
I: Iterator + Clone,
632+
I: Iterator,
633633
I::Item: Clone,
634634
T: HasCombination<I>,
635635
{

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ pub trait Itertools: Iterator {
16671667
/// ```
16681668
fn tuple_combinations<T>(self) -> TupleCombinations<Self, T>
16691669
where
1670-
Self: Sized + Clone,
1670+
Self: Sized,
16711671
Self::Item: Clone,
16721672
T: adaptors::HasCombination<Self>,
16731673
{

0 commit comments

Comments
 (0)