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()