chore: Clippy fixes

This commit is contained in:
Ginger
2026-04-13 17:31:52 -04:00
parent e185f56f3a
commit e70004c98f
53 changed files with 110 additions and 118 deletions
+2 -12
View File
@@ -610,19 +610,9 @@ async fn fix_readreceiptid_readreceipt_duplicates(services: &Services) -> Result
.expect_ok()
.ready_for_each(|key: Key| {
let (ref room_id, _, ref user_id) = key;
let last_room = cur_room.replace(
room_id
.as_str()
.try_into()
.expect("invalid room_id in database"),
);
let last_room = cur_room.replace(room_id.as_str().into());
let last_user = cur_user.replace(
user_id
.as_str()
.try_into()
.expect("invalid user_id in database"),
);
let last_user = cur_user.replace(user_id.as_str().into());
let is_dup = cur_room == last_room && cur_user == last_user;
if is_dup {