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
|
@ -445,7 +445,7 @@ impl Service {
|
|||
.into_iter()
|
||||
.map(at!(0))
|
||||
.zip(auth_pdus.into_iter())
|
||||
.filter_map(|((event_type, state_key), pdu)| Some(((event_type, state_key), pdu.ok()?)))
|
||||
.filter_map(|((event_type, state_key), pdu)| Some(((event_type, state_key), pdu.ok()?.into())))
|
||||
.collect();
|
||||
|
||||
Ok(auth_pdus)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue