mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-22 18:54:19 +01:00
clippy
This commit is contained in:
@@ -8,17 +8,12 @@ impl ToSqlString for ast::Update {
|
||||
"{} ",
|
||||
with.to_sql_string(context)
|
||||
)),
|
||||
self.or_conflict.map_or("".to_string(), |conflict| format!(
|
||||
"OR {} ",
|
||||
conflict.to_string()
|
||||
)),
|
||||
self.or_conflict
|
||||
.map_or("".to_string(), |conflict| format!("OR {} ", conflict)),
|
||||
self.tbl_name.to_sql_string(context),
|
||||
self.indexed
|
||||
.as_ref()
|
||||
.map_or("".to_string(), |indexed| format!(
|
||||
" {}",
|
||||
indexed.to_string()
|
||||
)),
|
||||
.map_or("".to_string(), |indexed| format!(" {}", indexed)),
|
||||
self.sets
|
||||
.iter()
|
||||
.map(|set| set.to_sql_string(context))
|
||||
|
||||
Reference in New Issue
Block a user