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:
overlookmotel 2025-01-21 14:20:06 +00:00
parent b8d9a51462
commit 54d0fac987

View file

@ -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