From 37be24ee19b237f95defd2d86c99ae9e042d45c2 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 3 May 2023 10:25:32 +0200 Subject: [PATCH] sqlite: Fix compiler warnings --- crates/matrix-sdk-sqlite/src/state_store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk-sqlite/src/state_store.rs b/crates/matrix-sdk-sqlite/src/state_store.rs index 1ef116bc8..aa7cc5f16 100644 --- a/crates/matrix-sdk-sqlite/src/state_store.rs +++ b/crates/matrix-sdk-sqlite/src/state_store.rs @@ -180,7 +180,7 @@ impl SqliteStateStore { fn remove_maybe_stripped_room_data( &self, - txn: &Transaction, + txn: &Transaction<'_>, room_id: &RoomId, stripped: bool, ) -> rusqlite::Result<()> { @@ -1245,7 +1245,7 @@ impl StateStore for SqliteStateStore { receipt_type: ReceiptType, thread: ReceiptThread, user_id: &UserId, - ) -> Result> { + ) -> Result> { let room_id = self.encode_key(keys::RECEIPT, room_id); let receipt_type = self.encode_key(keys::RECEIPT, receipt_type.to_string()); // We cannot have a NULL primary key so we rely on serialization instead of the