mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore: Clippy fixes
This commit is contained in:
@@ -73,7 +73,11 @@ pub(super) async fn load_left_room(
|
||||
}
|
||||
|
||||
if let Some(ref leave_pdu) = leave_pdu {
|
||||
debug_assert_eq!(leave_pdu.kind, TimelineEventType::RoomMember);
|
||||
debug_assert_eq!(
|
||||
leave_pdu.kind,
|
||||
TimelineEventType::RoomMember,
|
||||
"leave PDU should be m.room.member"
|
||||
);
|
||||
}
|
||||
|
||||
let does_not_exist = services.rooms.metadata.exists(room_id).eq(&false).await;
|
||||
@@ -93,7 +97,11 @@ pub(super) async fn load_left_room(
|
||||
// the user left if they're allowed to see it.
|
||||
|
||||
let leave_state_key = sender_user;
|
||||
debug_assert_eq!(Some(leave_state_key.as_str()), leave_pdu.state_key());
|
||||
debug_assert_eq!(
|
||||
Some(leave_state_key.as_str()),
|
||||
leave_pdu.state_key(),
|
||||
"leave PDU should be for the user requesting the sync"
|
||||
);
|
||||
|
||||
let leave_shortstatehash = services
|
||||
.rooms
|
||||
|
||||
@@ -708,7 +708,7 @@ async fn collect_typing_events(
|
||||
}
|
||||
|
||||
let mut typing_response = sync_events::v5::response::Typing::default();
|
||||
for (room_id, (required_state_request, timeline_limit, roomsince)) in todo_rooms {
|
||||
for (room_id, (_, _, roomsince)) in todo_rooms {
|
||||
if services.rooms.typing.last_typing_update(room_id).await? <= *roomsince {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user