rust/hedgewars-server/src/handlers/checker.rs
author alfadur
Tue, 28 May 2019 21:28:32 +0300
changeset 15096 e935b1ad23f3
parent 15095 c5a6e8566425
child 15141 febccab419b1
permissions -rw-r--r--
normalize type names
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14478
98ef2913ec73 Apply rustfmt to all files
unc0rr
parents: 14436
diff changeset
     1
use log::*;
13771
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     2
use mio;
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     3
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     4
use crate::{
15096
e935b1ad23f3 normalize type names
alfadur
parents: 15095
diff changeset
     5
    core::{server::HwServer, types::ClientId},
e935b1ad23f3 normalize type names
alfadur
parents: 15095
diff changeset
     6
    protocol::messages::HwProtocolMessage,
13771
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     7
};
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
     8
15096
e935b1ad23f3 normalize type names
alfadur
parents: 15095
diff changeset
     9
pub fn handle(_server: &mut HwServer, _client_id: ClientId, message: HwProtocolMessage) {
13771
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    10
    match message {
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    11
        _ => warn!("Unknown command"),
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    12
    }
4664da990556 Add official server feature to cargo
alfadur
parents:
diff changeset
    13
}