Skip to content

Commit 9ccf9ac

Browse files
authored
Inline Word::to_ident (#2427)
1 parent 183e083 commit 9ccf9ac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/parser/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21247,6 +21247,7 @@ impl Word {
2124721247
/// Use this method when you need to keep the original `Word` around.
2124821248
/// If you can consume the `Word`, prefer [`into_ident`](Self::into_ident) instead
2124921249
/// to avoid cloning.
21250+
#[inline]
2125021251
pub fn to_ident(&self, span: Span) -> Ident {
2125121252
Ident {
2125221253
value: self.value.clone(),

0 commit comments

Comments
 (0)