Skip to content

Commit 1e6d9d2

Browse files
andygroveclaude
authored andcommitted
perf: remove unnecessary string clone in maybe_concat_string_literal (apache#2173)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a249a38 commit 1e6d9d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11329,7 +11329,7 @@ impl<'a> Parser<'a> {
1132911329
while let Token::SingleQuotedString(ref s) | Token::DoubleQuotedString(ref s) =
1133011330
self.peek_token_ref().token
1133111331
{
11332-
str.push_str(s.clone().as_str());
11332+
str.push_str(s);
1133311333
self.advance_token();
1133411334
}
1133511335
}

0 commit comments

Comments
 (0)