stop putting comments in the middle of call chains

`rustfmt` doesn't handle this very well.
This commit is contained in:
Charles Hall 2024-05-16 01:08:08 -07:00
parent 1911ad34d9
commit 05be778fbb
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
10 changed files with 35 additions and 38 deletions

View file

@ -165,7 +165,7 @@ pub(crate) async fn get_message_events_route(
.user_can_see_event(sender_user, &body.room_id, &pdu.event_id)
.unwrap_or(false)
})
.take_while(|&(k, _)| Some(k) != to) // Stop at `to`
.take_while(|&(k, _)| Some(k) != to)
.collect();
for (_, event) in &events_after {
@ -217,7 +217,7 @@ pub(crate) async fn get_message_events_route(
.user_can_see_event(sender_user, &body.room_id, &pdu.event_id)
.unwrap_or(false)
})
.take_while(|&(k, _)| Some(k) != to) // Stop at `to`
.take_while(|&(k, _)| Some(k) != to)
.collect();
for (_, event) in &events_before {