mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 18:02:56 +00:00
Fix lints
This commit is contained in:
@@ -76,8 +76,7 @@ pub async fn password_hack(
|
||||
info!(project = &payload.project, "received missing parameter");
|
||||
creds.project = Some(payload.project.into());
|
||||
|
||||
let password = payload.password.into();
|
||||
let node = get_compute(api, extra, creds, password).await?;
|
||||
let node = get_compute(api, extra, creds, payload.password).await?;
|
||||
|
||||
// Report tentative success; compute node will check the password anyway.
|
||||
Ok(AuthSuccess {
|
||||
|
||||
@@ -241,7 +241,7 @@ mod tests {
|
||||
#[test]
|
||||
fn build_server_messages() {
|
||||
let input = "n,,n=pepe,r=t8JwklwKecDLwSsA72rHmVju";
|
||||
let client_first_message = ClientFirstMessage::parse(&input).unwrap();
|
||||
let client_first_message = ClientFirstMessage::parse(input).unwrap();
|
||||
|
||||
let nonce = [0; 18];
|
||||
let salt = [1, 2, 3];
|
||||
@@ -270,7 +270,7 @@ mod tests {
|
||||
let signature_builder = SignatureBuilder {
|
||||
client_first_message_bare: client_first_message.bare,
|
||||
server_first_message: server_first_message.as_str(),
|
||||
client_final_message_without_proof: &client_final_message.without_proof,
|
||||
client_final_message_without_proof: client_final_message.without_proof,
|
||||
};
|
||||
|
||||
let server_key = ScramKey::default();
|
||||
|
||||
Reference in New Issue
Block a user