mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
use swap_remove instead of remove in a few places
`swap_remove` is faster if we don't care about the order (O(1)) Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
b63937af0b
commit
f6fa2a4f65
3 files changed
+4
-4
No files matched your search
@@ -1078,7 +1078,7 @@ impl Service {
|
||||
.into_iter()
|
||||
.position(|server_name| server_is_ours(&server_name))
|
||||
{
|
||||
servers.remove(server_index);
|
||||
servers.swap_remove(server_index);
|
||||
}
|
||||
|
||||
servers.sort_unstable();
|
||||
|
||||
Reference in new issue
Block a user