Skip to content

Commit

Permalink
refactor(span)!: remove PartialEq impl for &Atom (#8642)
Browse files Browse the repository at this point in the history
Remove this unnecessary impl. It's pretty odd to have a method which takes an `&&Atom` (which is essentially a `&&&str`).
  • Loading branch information
overlookmotel committed Jan 21, 2025
1 parent b8d9a51 commit 54d0fac
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/oxc_span/src/atom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54d0fac

Please sign in to comment.