mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Fix clippy warnings
This commit is contained in:
parent
456c847bd6
commit
0ce15c546a
@ -289,7 +289,7 @@ mod build_bundled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn env(name: &str) -> Option<OsString> {
|
fn env(name: &str) -> Option<OsString> {
|
||||||
let prefix = env::var("TARGET").unwrap().to_uppercase().replace("-", "_");
|
let prefix = env::var("TARGET").unwrap().to_uppercase().replace('-', "_");
|
||||||
let prefixed = format!("{}_{}", prefix, name);
|
let prefixed = format!("{}_{}", prefix, name);
|
||||||
let var = env::var_os(&prefixed);
|
let var = env::var_os(&prefixed);
|
||||||
|
|
||||||
|
@ -730,7 +730,7 @@ impl InnerConnection {
|
|||||||
pub fn escape_double_quote(identifier: &str) -> Cow<'_, str> {
|
pub fn escape_double_quote(identifier: &str) -> Cow<'_, str> {
|
||||||
if identifier.contains('"') {
|
if identifier.contains('"') {
|
||||||
// escape quote by doubling them
|
// escape quote by doubling them
|
||||||
Owned(identifier.replace("\"", "\"\""))
|
Owned(identifier.replace('"', "\"\""))
|
||||||
} else {
|
} else {
|
||||||
Borrowed(identifier)
|
Borrowed(identifier)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user