Skip to content

Commit

Permalink
Better formatting for Unique traits
Browse files Browse the repository at this point in the history
  • Loading branch information
gilhooleyd committed Oct 6, 2023
1 parent c538eba commit 7f16bd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/unique_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ where
/// See [`.unique()`](crate::Itertools::unique) for more information.
#[derive(Clone)]
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Unique<I: Iterator> where I::Item: Clone {
pub struct Unique<I>
where
I: Iterator,
I::Item: Eq + Hash + Clone,
{
iter: UniqueBy<I, I::Item, ()>,
}

Expand Down

0 comments on commit 7f16bd6

Please sign in to comment.