From fdb5724053828bc935b4381f43973c12f30e2104 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Fri, 9 Dec 2022 23:28:51 +0000 Subject: [PATCH] Add ?Sized to PartialEq for Lua String --- src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.rs b/src/string.rs index 60d7072..70e11d1 100644 --- a/src/string.rs +++ b/src/string.rs @@ -163,7 +163,7 @@ impl<'lua> Borrow<[u8]> for String<'lua> { // in other ways. impl<'lua, T> PartialEq for String<'lua> where - T: AsRef<[u8]>, + T: AsRef<[u8]> + ?Sized, { fn eq(&self, other: &T) -> bool { self.as_bytes() == other.as_ref()