Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Dec 16, 2024
1 parent 1303be2 commit ebc339e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/threshold-signature-server/src/helpers/signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub async fn do_signing(
&session_id,
signer,
state,
&x25519_secret_key,
x25519_secret_key,
)
.await?;

Expand Down
5 changes: 2 additions & 3 deletions crates/threshold-signature-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,10 @@ impl AppState {
validator_name: &Option<ValidatorName>,
) -> Self {
let (signer, x25519_secret) = if cfg!(test) || validator_name.is_some() {
get_signer_and_x25519_secret(&development_mnemonic(&validator_name).to_string())
.unwrap()
get_signer_and_x25519_secret(&development_mnemonic(validator_name).to_string()).unwrap()
} else {
let (pair, _seed) = sr25519::Pair::generate();
let x25519_secret = StaticSecret::random_from_rng(&mut OsRng);
let x25519_secret = StaticSecret::random_from_rng(OsRng);
(pair, x25519_secret)
};

Expand Down

0 comments on commit ebc339e

Please sign in to comment.