From c3726a0d7f7d5ea28c0b5541643cdf90774e76fb Mon Sep 17 00:00:00 2001 From: Daniel Salinas Date: Wed, 11 Dec 2024 10:44:50 -0500 Subject: [PATCH] Mark push_media as being OKAY despite having many arguments --- crates/matrix-sdk-sqlite/src/state_store.rs | 2 +- crates/matrix-sdk/src/send_queue.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk-sqlite/src/state_store.rs b/crates/matrix-sdk-sqlite/src/state_store.rs index a5d51d0fd0e..9f49d6baffb 100644 --- a/crates/matrix-sdk-sqlite/src/state_store.rs +++ b/crates/matrix-sdk-sqlite/src/state_store.rs @@ -2408,7 +2408,7 @@ mod migration_tests { let wedge_tx = wedged_event_transaction_id.clone(); let local_tx = local_event_transaction_id.clone(); - let _ = conn + conn .with_transaction(move |txn| { add_dependent_send_queue_event_v7( &db, diff --git a/crates/matrix-sdk/src/send_queue.rs b/crates/matrix-sdk/src/send_queue.rs index a44ca38de7f..d1fdb4e0711 100644 --- a/crates/matrix-sdk/src/send_queue.rs +++ b/crates/matrix-sdk/src/send_queue.rs @@ -1181,6 +1181,7 @@ impl QueueStorage { /// Push requests (and dependents) to upload a media. /// /// See the module-level description for details of the whole processus. + #[allow(clippy::too_many_arguments)] async fn push_media( &self, event: RoomMessageEventContent,