mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-30 16:40:52 +03:00
use slab instead of reinventing the wheel (#112)
This commit is contained in:
committed by
GitHub
parent
279e582698
commit
3e96b42067
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user