diff --git a/crates/oxc_span/src/atom.rs b/crates/oxc_span/src/atom.rs index 01e6ca2c6c181..4c7f2a1c12d90 100644 --- a/crates/oxc_span/src/atom.rs +++ b/crates/oxc_span/src/atom.rs @@ -98,6 +98,12 @@ impl<'a> From<&'a str> for Atom<'a> { } } +impl<'a> From> for &'a str { + fn from(s: Atom<'a>) -> Self { + s.as_str() + } +} + impl<'a> From> for CompactStr { #[inline] fn from(val: Atom<'a>) -> Self {