浏览代码

Merge pull request #153 from ComlOnline/rustformat

Update the Auth panic to be rustfmt
Sasha Hilton 7 年之前
父节点
当前提交
1257f98915
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      core/src/connection/mod.rs

+ 4 - 1
core/src/connection/mod.rs

@@ -82,7 +82,10 @@ pub fn authenticate(
 
                 Some((0xad, data)) => {
                     let error_data: APLoginFailed = protobuf::parse_from_bytes(data.as_ref()).unwrap();
-                    panic!("Authentication failed with reason: {:?}", error_data.get_error_code())
+                    panic!(
+                        "Authentication failed with reason: {:?}",
+                        error_data.get_error_code()
+                    )
                 }
 
                 Some((cmd, _)) => panic!("Unexpected packet {:?}", cmd),