diff -r 8c5dd562c9f7 -r 5359ff75da3a gameServer2/src/protocol/messages.rs --- a/gameServer2/src/protocol/messages.rs Tue Jul 17 00:27:24 2018 +0300 +++ b/gameServer2/src/protocol/messages.rs Tue Jul 17 16:03:34 2018 +0300 @@ -41,7 +41,7 @@ // in room Part(Option), Cfg(GameCfg), - AddTeam(TeamInfo), + AddTeam(Box), RemoveTeam(String), SetHedgehogsNumber(String, u8), SetTeamColor(String, u8), @@ -245,7 +245,7 @@ } } -fn construct_message(header: &[&str], msg: &Vec) -> String { +fn construct_message(header: &[&str], msg: &[String]) -> String { let mut v: Vec<_> = header.iter().map(|s| *s).collect(); v.extend(msg.iter().map(|s| &s[..])); v.push("\n");