diff -r c5a6e8566425 -r e935b1ad23f3 rust/hedgewars-server/src/core/room.rs --- a/rust/hedgewars-server/src/core/room.rs Tue May 28 19:04:18 2019 +0300 +++ b/rust/hedgewars-server/src/core/room.rs Tue May 28 21:28:32 2019 +0300 @@ -1,5 +1,5 @@ use super::{ - client::HWClient, + client::HwClient, types::{ ClientId, GameCfg, GameCfg::*, RoomConfig, RoomId, TeamInfo, Voting, MAX_HEDGEHOGS_PER_TEAM, }, @@ -66,7 +66,7 @@ } } -pub struct HWRoom { +pub struct HwRoom { pub id: RoomId, pub master_id: Option, pub name: String, @@ -86,9 +86,9 @@ pub game_info: Option, } -impl HWRoom { - pub fn new(id: RoomId) -> HWRoom { - HWRoom { +impl HwRoom { + pub fn new(id: RoomId) -> HwRoom { + HwRoom { id, master_id: None, name: String::new(), @@ -275,7 +275,7 @@ result } - pub fn info(&self, master: Option<&HWClient>) -> Vec { + pub fn info(&self, master: Option<&HwClient>) -> Vec { let c = &self.config; vec![ self.flags_string(),