Remove PartialEq<char> for JsString for now

This seems to spark controversy, so removing for now but should be easy enough to still add in the future.
This commit is contained in:
Ingvar Stepanyan 2019-04-24 13:40:18 +01:00
parent bc4a98d146
commit 680a6bbb0c

View File

@ -3679,12 +3679,6 @@ impl PartialEq<str> for JsString {
}
}
impl PartialEq<char> for JsString {
fn eq(&self, other: &char) -> bool {
self.as_char() == Some(*other)
}
}
impl<'a> PartialEq<&'a str> for JsString {
fn eq(&self, other: &&'a str) -> bool {
<JsString as PartialEq<str>>::eq(self, other)