From 9d6aef34add7a1bf32e754951a3d500721a2e626 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 15 May 2023 18:23:23 +0200 Subject: clippy lint fix --- src/login/static_provider.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/login/static_provider.rs') diff --git a/src/login/static_provider.rs b/src/login/static_provider.rs index 5ea765f..b9be5a6 100644 --- a/src/login/static_provider.rs +++ b/src/login/static_provider.rs @@ -151,7 +151,7 @@ pub fn verify_password(password: &str, hash: &str) -> Result { Argon2, }; let parsed_hash = - PasswordHash::new(&hash).map_err(|e| anyhow!("Invalid hashed password: {}", e))?; + PasswordHash::new(hash).map_err(|e| anyhow!("Invalid hashed password: {}", e))?; Ok(Argon2::default() .verify_password(password.as_bytes(), &parsed_hash) .is_ok()) -- cgit v1.2.3