You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/01/23 10:46:50 UTC
(datafusion-sqlparser-rs) 01/01: perf: remove unnecessary string clone in maybe_concat_string_literal (#2173)
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch gh-readonly-queue/main/pr-2173-abec6f9b207287d269e015f738cc0bf36da82d08
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git
commit 6550ec8009b9584bd38ec9d687d5e819cc43a5c2
Author: Andy Grove <ag...@apache.org>
AuthorDate: Fri Jan 23 03:46:29 2026 -0700
perf: remove unnecessary string clone in maybe_concat_string_literal (#2173)
Co-authored-by: Claude Opus 4.5 <no...@anthropic.com>
---
src/parser/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index 0971d915..cfc173d7 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -11298,7 +11298,7 @@ impl<'a> Parser<'a> {
while let Token::SingleQuotedString(ref s) | Token::DoubleQuotedString(ref s) =
self.peek_token_ref().token
{
- str.push_str(s.clone().as_str());
+ str.push_str(s);
self.advance_token();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org