Skip to content

Commit

Permalink
Fix unneeded as_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadravid committed Jan 18, 2025
1 parent 21ae253 commit 4caba19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ where
/// ```
pub fn quote_and_escape_wql_str(s: impl AsRef<str>) -> String {
let s = s.as_ref();
let mut o = String::with_capacity(s.as_bytes().len() + 2);
let mut o = String::with_capacity(s.len() + 2);
o.push('"');
for ch in s.chars() {
match ch {
Expand Down

0 comments on commit 4caba19

Please sign in to comment.