From 1934181b522058bf76d04c2b9743714958cf67d9 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 31 Mar 2020 02:44:02 +0300 Subject: [PATCH] Terminate new SQL statement lines with \ This way rustfmt can change indentation. However, care should be taken to keep a space before each \ --- src/job.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/job.rs b/src/job.rs index 6784c6bf2..7d6f08946 100644 --- a/src/job.rs +++ b/src/job.rs @@ -918,11 +918,11 @@ fn add_imap_deletion_jobs(context: &Context) -> sql::Result<()> { // Select all expired messages which don't have a // corresponding message deletion job yet. let msg_ids = context.sql.query_map( - "SELECT id FROM msgs - WHERE timestamp < ? - AND server_uid != 0 - AND NOT EXISTS (SELECT 1 FROM jobs WHERE foreign_id = msgs.id - AND action = ?)", + "SELECT id FROM msgs \ + WHERE timestamp < ? \ + AND server_uid != 0 \ + AND NOT EXISTS (SELECT 1 FROM jobs WHERE foreign_id = msgs.id \ + AND action = ?)", params![threshold_timestamp, Action::DeleteMsgOnImap], |row| row.get::<_, MsgId>(0), |ids| {