Skip to content

Commit a1cce69

Browse files
author
CommanderKeynes
committed
Format
1 parent caad725 commit a1cce69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ where
464464
== 1;
465465

466466
if !admin && admin_only {
467-
// Kick any client that's not admin while we're in admin-only mode.
467+
// Kick any client that's not admin while we're in admin-only mode.
468468
debug!(
469469
"Rejecting non-admin connection to {} when in admin only mode",
470470
pool_name
@@ -531,7 +531,6 @@ where
531531
}
532532
};
533533

534-
535534
// Compare server and client hashes.
536535
let password_hash = md5_hash_password(
537536
&config.general.admin_username,
@@ -540,7 +539,8 @@ where
540539
);
541540

542541
if password_hash != password_response {
543-
let error = Error::ClientGeneralError("Invalid password".into(), client_identifier);
542+
let error =
543+
Error::ClientGeneralError("Invalid password".into(), client_identifier);
544544

545545
warn!("{}", error);
546546
wrong_password(&mut write, username).await?;

0 commit comments

Comments
 (0)