use slab instead of reinventing the wheel (#112)

This commit is contained in:
Ferdinand Schober
2024-04-26 00:10:04 +02:00
committed by GitHub
parent 279e582698
commit 3e96b42067
14 changed files with 83 additions and 115 deletions

View File

@@ -134,9 +134,9 @@ impl Server {
.client_manager
.borrow()
.get_client_states()
.filter_map(|s| {
.filter_map(|(h, s)| {
if s.active {
Some((s.client.handle, s.client.hostname.clone()))
Some((h, s.client.hostname.clone()))
} else {
None
}