Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
fix(clippy): remove clone (undetected in local clippy check)
Browse files Browse the repository at this point in the history
  • Loading branch information
oetyng committed Feb 1, 2021
1 parent b312446 commit da6cbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routing/approved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl Approved {
/// Returns our index in the current BLS group if this node is a member of one, or
/// `Error::MissingSecretKeyShare` otherwise.
pub fn our_index(&self) -> Result<usize> {
Ok(self.section_keys_provider.key_share()?.index.clone())
Ok(self.section_keys_provider.key_share()?.index)
}

pub fn send_event(&self, event: Event) {
Expand Down

0 comments on commit da6cbc7

Please sign in to comment.