mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 17:31:06 +00: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 {
|
impl<'a> PartialEq<&'a str> for JsString {
|
||||||
fn eq(&self, other: &&'a str) -> bool {
|
fn eq(&self, other: &&'a str) -> bool {
|
||||||
<JsString as PartialEq<str>>::eq(self, other)
|
<JsString as PartialEq<str>>::eq(self, other)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user