Merge pull request #153 from ComlOnline/rustformat

Update the Auth panic to be rustfmt
This commit is contained in:
Sasha Hilton 2018-02-14 15:42:48 +01:00 committed by GitHub
commit 1257f98915
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,10 @@ pub fn authenticate(
Some((0xad, data)) => { Some((0xad, data)) => {
let error_data: APLoginFailed = protobuf::parse_from_bytes(data.as_ref()).unwrap(); 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), Some((cmd, _)) => panic!("Unexpected packet {:?}", cmd),