Don't let repeat_vars() return unnecessary Result

This commit is contained in:
Hocuri
2022-04-22 15:52:53 +02:00
committed by holger krekel
parent a4f5d2b9b2
commit 2b233fd810
8 changed files with 14 additions and 14 deletions

View File

@@ -315,7 +315,7 @@ pub(crate) async fn start_ephemeral_timers_msgids(
"UPDATE msgs SET ephemeral_timestamp = ? + ephemeral_timer
WHERE (ephemeral_timestamp == 0 OR ephemeral_timestamp > ? + ephemeral_timer) AND ephemeral_timer > 0
AND id IN ({})",
sql::repeat_vars(msg_ids.len())?
sql::repeat_vars(msg_ids.len())
),
rusqlite::params_from_iter(
std::iter::once(&now as &dyn crate::ToSql)