Skip to content

Commit

Permalink
Allow Q: ?Sized in Itertools::contains
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexendoo authored and phimuemue committed Jul 12, 2024
1 parent 3067893 commit a20444f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,7 @@ pub trait Itertools: Iterator {
where
Self: Sized,
Self::Item: Borrow<Q>,
Q: PartialEq,
Q: PartialEq + ?Sized,
{
self.any(|x| x.borrow() == query)
}
Expand Down

0 comments on commit a20444f

Please sign in to comment.