From 966138d4169b102ea4fd50b16a002bf9cd8e939b Mon Sep 17 00:00:00 2001 From: Yuwei Zhao Date: Wed, 5 Aug 2026 03:17:04 +0800 Subject: [PATCH] Inline Word::to_ident --- src/parser/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/mod.rs b/src/parser/mod.rs index b2b3f42bb..69e2f660b 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -21214,6 +21214,7 @@ impl Word { /// Use this method when you need to keep the original `Word` around. /// If you can consume the `Word`, prefer [`into_ident`](Self::into_ident) instead /// to avoid cloning. + #[inline] pub fn to_ident(&self, span: Span) -> Ident { Ident { value: self.value.clone(),