simplify get_pdu() interface; eliminate unconditional Arc
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
58be22e695
commit
6175e72f1c
16 changed files with 51 additions and 52 deletions
|
@ -181,11 +181,7 @@ async fn procure_room_state(services: &Services, room_id: &RoomId) -> Result<Roo
|
|||
.room_state_full(room_id)
|
||||
.await?;
|
||||
|
||||
let state_events = state_map
|
||||
.values()
|
||||
.map(AsRef::as_ref)
|
||||
.map(PduEvent::to_state_event)
|
||||
.collect();
|
||||
let state_events = state_map.values().map(PduEvent::to_state_event).collect();
|
||||
|
||||
Ok(state_events)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue