Skip to content

Commit a20444f

Browse files
Alexendoophimuemue
authored andcommitted
Allow Q: ?Sized in Itertools::contains
1 parent 3067893 commit a20444f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ pub trait Itertools: Iterator {
20682068
where
20692069
Self: Sized,
20702070
Self::Item: Borrow<Q>,
2071-
Q: PartialEq,
2071+
Q: PartialEq + ?Sized,
20722072
{
20732073
self.any(|x| x.borrow() == query)
20742074
}

0 commit comments

Comments
 (0)