mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
refactor(span)!: remove PartialEq impl for &Atom (#8642)
Remove this unnecessary impl. It's pretty odd to have a method which takes an `&&Atom` (which is essentially a `&&&str`).
This commit is contained in:
1 parent
b8d9a51462
commit
54d0fac987
1 file changed
-6
@@ -184,12 +184,6 @@ impl PartialEq<Atom<'_>> for Cow<'_, str> {
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq<&Atom<'_>> for Cow<'_, str> {
|
||||
fn eq(&self, other: &&Atom<'_>) -> bool {
|
||||
self.as_ref() == other.as_str()
|
||||
}
|
||||
}
|
||||
|
||||
impl ContentEq for Atom<'_> {
|
||||
fn content_eq(&self, other: &Self) -> bool {
|
||||
self == other
|
||||
|
||||
Reference in new issue
Block a user