mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
Remove unneeded allocation
Signed-off-by: Piotr Jastrzebski <haaawk@gmail.com>
This commit is contained in:
parent
dac8f4dcba
commit
83c7e7bd95
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
pub fn normalize_ident(ident: &str) -> String {
|
||||
if ident.starts_with('"') && ident.ends_with('"') {
|
||||
ident[1..ident.len() - 1].to_string().to_lowercase()
|
||||
ident[1..ident.len() - 1].to_lowercase()
|
||||
} else {
|
||||
ident.to_lowercase()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue