From 02ee9799707700f4bf44a0ff9d9e805b6508258f Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Fri, 17 Feb 2023 22:17:57 +0100 Subject: [PATCH] clippy: needless borrow --- srp/src/utils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srp/src/utils.rs b/srp/src/utils.rs index 6eeb3a3..2bd7639 100644 --- a/srp/src/utils.rs +++ b/srp/src/utils.rs @@ -53,8 +53,8 @@ pub fn compute_m1( // M2 = H(A, M1, K) pub fn compute_m2(a_pub: &[u8], m1: &Output, key: &[u8]) -> Output { let mut d = D::new(); - d.update(&a_pub); - d.update(&m1); - d.update(&key); + d.update(a_pub); + d.update(m1); + d.update(key); d.finalize() } -- 2.44.0