chore(proto): crate formatting

This commit is contained in:
Jindřich Moravec 2023-12-23 01:28:30 +01:00
parent 505f59b354
commit a08376766c
18 changed files with 103 additions and 75 deletions

View file

@ -17,7 +17,10 @@ pub async fn do_client_handshake(
writer.flush().await?;
let auth = reader.read_proto().await?;
if !matches!(auth, BackendMessage::AuthenticationOk(AuthenticationOkData { status: 0 })) {
if !matches!(
auth,
BackendMessage::AuthenticationOk(AuthenticationOkData { status: 0 })
) {
return Err(ClientHandshakeError::UnexpectedAuthResponse(auth));
}
@ -32,4 +35,4 @@ pub async fn do_client_handshake(
}
HandshakeResponse::try_from(messages.as_slice())
}
}