From 0bde3739e35b2c39abbe335ed7938010bcc8b834 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Tue, 14 Jan 2025 09:09:04 +0000 Subject: [PATCH] refactor(span): rename `Atom::new_const` method --- crates/oxc_span/src/atom.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_span/src/atom.rs b/crates/oxc_span/src/atom.rs index 896af0ca79d70..8896dbeb2d948 100644 --- a/crates/oxc_span/src/atom.rs +++ b/crates/oxc_span/src/atom.rs @@ -22,14 +22,14 @@ pub struct Atom<'a>(&'a str); impl Atom<'static> { /// Get an [`Atom`] containing a static string. #[inline] - pub const fn r#static(s: &'static str) -> Self { + pub const fn new_const(s: &'static str) -> Self { Atom(s) } /// Get an [`Atom`] containing the empty string (`""`). #[inline] pub const fn empty() -> Self { - Self::r#static("") + Self::new_const("") } }