style(presence): use flat_map instead of matching Results in filter
This commit is contained in:
parent
e93b4aa08e
commit
69025d30f7
5 changed files with 9 additions and 16 deletions
|
@ -29,5 +29,5 @@ pub trait Data: Send + Sync {
|
|||
&'a self,
|
||||
room_id: &RoomId,
|
||||
since: u64,
|
||||
) -> Box<dyn Iterator<Item = Result<(OwnedUserId, u64, PresenceEvent)>> + 'a>;
|
||||
) -> Box<dyn Iterator<Item = (OwnedUserId, u64, PresenceEvent)> + 'a>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue