rust/hedgewars-server/src/server/handlers/loggingin.rs
changeset 14701 8a45c90f4580
parent 14700 216d39de1a44
child 14784 f43ab2bd76ae
--- a/rust/hedgewars-server/src/server/handlers/loggingin.rs	Thu Feb 07 18:04:53 2019 +0300
+++ b/rust/hedgewars-server/src/server/handlers/loggingin.rs	Thu Feb 07 22:26:56 2019 +0300
@@ -97,7 +97,9 @@
         HWProtocolMessage::Password(hash, salt) => {
             let client = &anteroom.clients[client_id];
 
-            if let (Some(protocol), Some(password)) = (client.protocol_number, client.web_password.as_ref()) {
+            if let (Some(protocol), Some(password)) =
+                (client.protocol_number, client.web_password.as_ref())
+            {
                 let client_hash = get_hash(protocol.get(), &password, &salt, &client.server_salt);
                 let server_hash = get_hash(protocol.get(), &password, &client.server_salt, &salt);
                 if client_hash == server_hash {