Skip to content

Commit

Permalink
remove Clone bound from tuple_combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnodas authored and jswrenn committed Jan 3, 2025
1 parent d2510f4 commit 25c1eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adaptors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ pub trait HasCombination<I>: Sized {
/// Create a new `TupleCombinations` from a clonable iterator.
pub fn tuple_combinations<T, I>(iter: I) -> TupleCombinations<I, T>
where
I: Iterator + Clone,
I: Iterator,
I::Item: Clone,
T: HasCombination<I>,
{
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ pub trait Itertools: Iterator {
/// ```
fn tuple_combinations<T>(self) -> TupleCombinations<Self, T>
where
Self: Sized + Clone,
Self: Sized,
Self::Item: Clone,
T: adaptors::HasCombination<Self>,
{
Expand Down

0 comments on commit 25c1eff

Please sign in to comment.