mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +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:
parent
b8d9a51462
commit
54d0fac987
1 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue