From 54d0fac987c3ecda300a8abb41ed20925b66fec1 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Tue, 21 Jan 2025 14:20:06 +0000 Subject: [PATCH] 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`). --- crates/oxc_span/src/atom.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/oxc_span/src/atom.rs b/crates/oxc_span/src/atom.rs index 2af56a3046d19..fc13040db2d99 100644 --- a/crates/oxc_span/src/atom.rs +++ b/crates/oxc_span/src/atom.rs @@ -184,12 +184,6 @@ impl PartialEq> 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