diff -r e335daaa77a9 -r 59ea2403f62d gameServer2/src/protocol/messages.rs --- a/gameServer2/src/protocol/messages.rs Mon Aug 27 22:28:56 2018 +0300 +++ b/gameServer2/src/protocol/messages.rs Tue Aug 28 17:19:25 2018 +0300 @@ -151,6 +151,7 @@ }; } +#[cfg(test)] macro_rules! several { [$part: expr] => { once($part) }; [$part: expr, $($other: expr),*] => { once($part).chain(several![$($other),*]) }; @@ -161,6 +162,7 @@ * * This is the inverse of the `message` parser. */ + #[cfg(test)] pub(crate) fn to_raw_protocol(&self) -> String { use self::HWProtocolMessage::*; match self {