From 16e5f96f3f0ed108e8e42895d88d899d009b52b6 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 22 Feb 2021 16:02:38 +0000 Subject: [PATCH] Fix a clippy lint. Signed-off-by: Daira Hopwood --- src/pasta/hashtocurve.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pasta/hashtocurve.rs b/src/pasta/hashtocurve.rs index db69f067..dc1c165a 100644 --- a/src/pasta/hashtocurve.rs +++ b/src/pasta/hashtocurve.rs @@ -50,9 +50,9 @@ pub fn hash_to_field(message: &[u8], domain_separation_tag: &[u8], .update(&[1]) .update(&dst_prime), ); + let mut empty_hasher = empty_hasher; let b_2 = finalize( empty_hasher - .clone() .update(&xor(&b_0, &b_1)) .update(&[2]) .update(&dst_prime),