Fix lints

This commit is contained in:
Dmitry Ivanov
2023-02-28 19:40:28 +03:00
parent e9f73707c7
commit 632c07cab5
2 changed files with 3 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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();