rust/hedgewars-network-protocol/src/parser.rs
changeset 15830 ea459da15b30
parent 15811 a855f32ab3ca
child 15982 cf580d9ff7ef
--- a/rust/hedgewars-network-protocol/src/parser.rs	Fri Jan 28 02:33:44 2022 +0300
+++ b/rust/hedgewars-network-protocol/src/parser.rs	Mon Jan 31 18:24:49 2022 +0300
@@ -23,8 +23,10 @@
     str::{FromStr, Utf8Error},
 };
 
-use crate::messages::{HwProtocolMessage, HwProtocolMessage::*, HwServerMessage};
-use crate::types::{GameCfg, HedgehogInfo, ServerVar, TeamInfo, VoteType};
+use crate::{
+    messages::{HwProtocolMessage, HwProtocolMessage::*, HwServerMessage},
+    types::{GameCfg, HedgehogInfo, ServerVar, TeamInfo, VoteType},
+};
 
 #[derive(Debug, PartialEq)]
 pub struct HwProtocolError {}
@@ -493,8 +495,8 @@
                 )),
             ),
             |values| CheckedOk(values.unwrap_or_default()),
-        )
-))(input)
+        ),
+    ))(input)
 }
 
 pub fn malformed_message(input: &[u8]) -> HwResult<()> {