gameServer2/src/protocol/messages.rs
changeset 13796 59ea2403f62d
parent 13667 bfc2727daead
child 13798 4664da990556
--- 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 {