From 1545b6ef6fff879fbba4b88de200b0cf2e75ded5 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 17 Oct 2023 16:12:46 -0700 Subject: [PATCH] chore: fix some clippy warnings These only show up when multicore is off --- src/signature.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/signature.rs b/src/signature.rs index 5e662f9..ed5acc3 100644 --- a/src/signature.rs +++ b/src/signature.rs @@ -113,10 +113,8 @@ pub fn aggregate(signatures: &[Signature]) -> Result { } let res = signatures - .into_iter() - .fold(G2Projective::identity(), |acc, signature| { - acc + &signature.0 - }); + .iter() + .fold(G2Projective::identity(), |acc, signature| acc + signature.0); Ok(Signature(res.into())) }