Skip to content

Commit

Permalink
Remove Clone requirement from unique
Browse files Browse the repository at this point in the history
This trait requirement appears to no longer be needed.
  • Loading branch information
gilhooleyd committed Oct 6, 2023
1 parent 8db450f commit 766a2d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1373,9 +1373,6 @@ pub trait Itertools: Iterator {
/// already been produced once during the iteration. Duplicates
/// are detected using hash and equality.
///
/// Clones of visited elements are stored in a hash set in the
/// iterator.
///
/// The iterator is stable, returning the non-duplicate items in the order
/// in which they occur in the adapted iterator. In a set of duplicate
/// items, the first item encountered is the item retained.
Expand All @@ -1391,7 +1388,7 @@ pub trait Itertools: Iterator {
fn unique(self) -> Unique<Self>
where
Self: Sized,
Self::Item: Clone + Eq + Hash,
Self::Item: Eq + Hash,
{
unique_impl::unique(self)
}
Expand Down

0 comments on commit 766a2d0

Please sign in to comment.