Skip to content

Commit

Permalink
chore: fix some clippy warnings
Browse files Browse the repository at this point in the history
These only show up when multicore is off
  • Loading branch information
Stebalien committed Oct 17, 2023
1 parent 08fcca2 commit 1545b6e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ pub fn aggregate(signatures: &[Signature]) -> Result<Signature, Error> {
}

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()))
}
Expand Down

0 comments on commit 1545b6e

Please sign in to comment.