Update server_v3.rs

fixed unused variable warning
This commit is contained in:
michael-bailey 2020-09-27 16:54:48 +01:00 committed by michael bailey
parent ccb29581fb
commit 0dc93ba9ce
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ impl Server {
println!("server: shutting down...");
for (k, v) in self.connected_clients.iter() {
v.sender.send(Commands::Disconnect(None));
for (_k, v) in self.connected_clients.iter() {
let _ = v.sender.send(Commands::Disconnect(None));
}
self.state = ServerState::Stopping;
},