remove some unnecessary loops
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
40596634c4
commit
839a89c968
4 changed files with 42 additions and 61 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue