mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 16:44:07 +00:00
Minor clean up
This commit is contained in:
@@ -48,7 +48,10 @@ pub async fn establish<'a, 'b: 'a>(
|
||||
|
||||
Message::Authentication(Authentication::CleartextPassword) => {
|
||||
// FIXME: Should error early (before send) if the user did not supply a password
|
||||
conn.send(PasswordMessage::cleartext(options.password.unwrap_or_default())).await?;
|
||||
conn.send(PasswordMessage::cleartext(
|
||||
options.password.unwrap_or_default(),
|
||||
))
|
||||
.await?;
|
||||
}
|
||||
|
||||
Message::Authentication(Authentication::Md5Password { salt }) => {
|
||||
|
||||
@@ -117,8 +117,6 @@ async fn receiver(
|
||||
}
|
||||
|
||||
while len > 0 {
|
||||
log::trace!("rbuf: {:?}", rbuf);
|
||||
|
||||
let size = rbuf.len();
|
||||
let message = Message::decode(&mut rbuf)?;
|
||||
len -= size - rbuf.len();
|
||||
|
||||
Reference in New Issue
Block a user