remove some unnecessary loops

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-07 23:24:38 -04:00 committed by June
parent 40596634c4
commit 839a89c968
4 changed files with 42 additions and 61 deletions

View file

@ -1429,7 +1429,7 @@ pub async fn get_room_information_route(
.state_cache
.room_servers(&room_id)
.filter_map(Result::ok)
.collect::<Vec<_>>();
.collect();
servers.sort_unstable();
servers.dedup();