mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
sql: replace empty paramsv![] with empty tuples
This commit is contained in:
@@ -434,10 +434,7 @@ fn is_marker(txt: &str) -> bool {
|
||||
|
||||
/// Deletes all locations from the database.
|
||||
pub async fn delete_all(context: &Context) -> Result<()> {
|
||||
context
|
||||
.sql
|
||||
.execute("DELETE FROM locations;", paramsv![])
|
||||
.await?;
|
||||
context.sql.execute("DELETE FROM locations;", ()).await?;
|
||||
context.emit_event(EventType::LocationChanged(None));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user