Skip to content

Commit

Permalink
Remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
aitorpazos committed Apr 18, 2021
1 parent e58aeeb commit 2a5cc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn secret_split(secret: String, shares_number: u8, threshold: u8) -> Vec<String>
let shamir_secret = SecretData::with_secret(normalize_string(secret).as_str(), threshold);
let mut i = 1;
while i <= shares_number {
shares.push(hex::encode(shamir_secret.get_share(i.clone()).unwrap()));
shares.push(hex::encode(shamir_secret.get_share(i).unwrap()));
i += 1;
}
shares
Expand Down

0 comments on commit 2a5cc93

Please sign in to comment.