Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Fix clippy warning and remove a clone on the signers set during `fina…
Browse files Browse the repository at this point in the history
…lize()` (#37)

* Fix clippy warning and remove a clone

* Update comment
  • Loading branch information
Nashtare authored Mar 12, 2024
1 parent a0b4b8e commit 4ffd620
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sign/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ impl<C: CipherSuite> SignatureAggregator<C, Initial<'_>> {
}

/// Get the list of partipating signers.
/// It will internally sort the signers by indices, remove any duplicate,
/// and then return a reference to the updated internal list.
///
/// # Returns
///
Expand Down Expand Up @@ -556,7 +558,7 @@ impl<C: CipherSuite> SignatureAggregator<C, Initial<'_>> {
}

// Ensure that our new state is ordered and deduplicated.
self.state.signers = self.get_signers().clone();
let _ = self.get_signers();

for signer in &self.state.signers {
if self
Expand Down

0 comments on commit 4ffd620

Please sign in to comment.