From ebc339ede5c6f01ef3356428262ba321f8f70281 Mon Sep 17 00:00:00 2001 From: peg Date: Mon, 16 Dec 2024 10:08:28 +0100 Subject: [PATCH] Clippy --- crates/threshold-signature-server/src/helpers/signing.rs | 2 +- crates/threshold-signature-server/src/lib.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/threshold-signature-server/src/helpers/signing.rs b/crates/threshold-signature-server/src/helpers/signing.rs index bb92fd619..b894387d6 100644 --- a/crates/threshold-signature-server/src/helpers/signing.rs +++ b/crates/threshold-signature-server/src/helpers/signing.rs @@ -84,7 +84,7 @@ pub async fn do_signing( &session_id, signer, state, - &x25519_secret_key, + x25519_secret_key, ) .await?; diff --git a/crates/threshold-signature-server/src/lib.rs b/crates/threshold-signature-server/src/lib.rs index 572d85761..4d544d5fa 100644 --- a/crates/threshold-signature-server/src/lib.rs +++ b/crates/threshold-signature-server/src/lib.rs @@ -216,11 +216,10 @@ impl AppState { validator_name: &Option, ) -> 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) };