From d0ffb2ecdd044a888519ea008c950ff24d551b88 Mon Sep 17 00:00:00 2001 From: Colm Date: Wed, 14 Feb 2018 04:50:51 +0000 Subject: [PATCH] Update for rust format --- core/src/connection/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/connection/mod.rs b/core/src/connection/mod.rs index 172339c3..bcb085e2 100644 --- a/core/src/connection/mod.rs +++ b/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),