Refactor to async closures.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-08 11:08:58 +00:00
parent cca0f20148
commit c8d35cca57
36 changed files with 78 additions and 80 deletions

View File

@@ -64,7 +64,7 @@ pub(crate) async fn get_backfill_route(
.timeline
.pdus_rev(None, &body.room_id, Some(from.saturating_add(1)))
.try_take(limit)
.try_filter_map(|(_, pdu)| async move {
.try_filter_map(async |(_, pdu)| {
Ok(services
.rooms
.state_accessor
@@ -72,7 +72,7 @@ pub(crate) async fn get_backfill_route(
.await
.then_some(pdu))
})
.try_filter_map(|pdu| async move {
.try_filter_map(async |pdu| {
Ok(services
.rooms
.timeline