sqlite: Fix compiler warnings

This commit is contained in:
Jonas Platte
2023-05-03 10:25:32 +02:00
committed by Jonas Platte
parent e1db33e6fa
commit 37be24ee19

View File

@@ -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<Option<(ruma::OwnedEventId, Receipt)>> {
) -> Result<Option<(OwnedEventId, Receipt)>> {
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