chore: get rid of warnings

This commit is contained in:
Timo Kösters 2021-03-18 18:33:43 +01:00
parent 7b3fe88345
commit f775c76d8a
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
11 changed files with 24 additions and 33 deletions

View file

@ -559,7 +559,7 @@ pub async fn sync_events_route(
let pdus = db.rooms.pdus_since(&sender_user, &room_id, since)?;
let mut room_events = pdus
.filter_map(|pdu| pdu.ok()) // Filter out buggy events
.take_while(|(pdu_id, pdu)| &since_member.0 != pdu)
.take_while(|(_, pdu)| &since_member.0 != pdu)
.map(|(_, pdu)| pdu.to_sync_room_event())
.collect::<Vec<_>>();
room_events.push(since_member.0.to_sync_room_event());