From ccd68d2fc7630dd925b44a3faa45c6b48348196f Mon Sep 17 00:00:00 2001 From: Alex Macleod Date: Fri, 12 Jul 2024 17:26:14 +0000 Subject: [PATCH] Allow `Q: ?Sized` in `Itertools::contains` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0f5ea8ee2..a8de36749 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2068,7 +2068,7 @@ pub trait Itertools: Iterator { where Self: Sized, Self::Item: Borrow, - Q: PartialEq, + Q: PartialEq + ?Sized, { self.any(|x| x.borrow() == query) }