mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-27 10:52:39 +03:00
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:
parent
bc4a98d146
commit
680a6bbb0c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user