From 825a235ed50e5cbef8d192a8862af556b432ecf1 Mon Sep 17 00:00:00 2001 From: ZelionD Date: Fri, 26 Jan 2024 00:34:26 -0500 Subject: [PATCH] clippy fixes --- user-verifier/src/signer.rs | 4 ++-- user-verifier/tests/common.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/user-verifier/src/signer.rs b/user-verifier/src/signer.rs index 8a37d07..0ccb268 100644 --- a/user-verifier/src/signer.rs +++ b/user-verifier/src/signer.rs @@ -118,14 +118,14 @@ mod tests { .signing_key .verifying_key() .verify_digest( - Keccak256::new_with_prefix(&hex::decode(&req.data).unwrap()), + Keccak256::new_with_prefix(hex::decode(&req.data).unwrap()), &signature, ) .unwrap(); // Recover and verify public key let recovered_key = k256::ecdsa::VerifyingKey::recover_from_digest( - Keccak256::new_with_prefix(&hex::decode(&req.data).unwrap()), + Keccak256::new_with_prefix(hex::decode(&req.data).unwrap()), &signature, (req.v - 27).try_into().unwrap(), ) diff --git a/user-verifier/tests/common.rs b/user-verifier/tests/common.rs index 7a3e644..75ffdd5 100644 --- a/user-verifier/tests/common.rs +++ b/user-verifier/tests/common.rs @@ -137,5 +137,5 @@ pub async fn signed_call