state-res: Change BTreeMap/Set to HashMap/Set

This commit is contained in:
Timo Kösters
2021-07-16 19:45:13 +02:00
committed by Jonas Platte
parent d970501c85
commit 3a0ee7740f
7 changed files with 62 additions and 57 deletions

View File

@@ -175,7 +175,11 @@ impl<E: Event> TestStore<E> {
}
/// Returns a Vec of the related auth events to the given `event`.
pub fn auth_event_ids(&self, room_id: &RoomId, event_ids: &[EventId]) -> Result<BTreeSet<EventId>> {
pub fn auth_event_ids(
&self,
room_id: &RoomId,
event_ids: &[EventId],
) -> Result<BTreeSet<EventId>> {
let mut result = BTreeSet::new();
let mut stack = event_ids.to_vec();