diff -r ee3fa3b8809d -r fb104e150878 gameServer2/src/protocol/test.rs --- a/gameServer2/src/protocol/test.rs Mon Jul 02 16:25:49 2018 +0300 +++ b/gameServer2/src/protocol/test.rs Mon Jul 02 16:46:13 2018 +0300 @@ -12,6 +12,11 @@ // Due to inability to define From between Options trait Into2: Sized { fn into2(self) -> T; } impl Into2 for T { fn into2(self) -> T { self } } +impl Into2> for Vec { + fn into2(self) -> Vec { + self.into_iter().map(|x| x.0).collect() + } +} impl Into2 for Ascii { fn into2(self) -> String { self.0 } } impl Into2> for Option{ fn into2(self) -> Option { self.map(|x| {x.0}) } @@ -90,7 +95,7 @@ 15 => CreateRoom(Ascii, Option), 16 => JoinRoom(Ascii, Option), 17 => Follow(Ascii), - //18 => Rnd(Vec), + 18 => Rnd(Vec), 19 => Kick(Ascii), 20 => Ban(Ascii, Ascii, u32), 21 => BanIP(Ascii, Ascii, u32),