Skip to content

Commit 680a6bb

Browse files
committed
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.
1 parent bc4a98d commit 680a6bb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

crates/js-sys/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3679,12 +3679,6 @@ impl PartialEq<str> for JsString {
36793679
}
36803680
}
36813681

3682-
impl PartialEq<char> for JsString {
3683-
fn eq(&self, other: &char) -> bool {
3684-
self.as_char() == Some(*other)
3685-
}
3686-
}
3687-
36883682
impl<'a> PartialEq<&'a str> for JsString {
36893683
fn eq(&self, other: &&'a str) -> bool {
36903684
<JsString as PartialEq<str>>::eq(self, other)

0 commit comments

Comments
 (0)