mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 16:51:24 +01:00
stop putting comments in the middle of call chains
`rustfmt` doesn't handle this very well.
This commit is contained in:
parent
1911ad34d9
commit
05be778fbb
10 changed files with 35 additions and 38 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue