Skip to content

Commit

Permalink
Apply more clippy suggestions (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonpartee authored Aug 29, 2024
1 parent a6926e8 commit af48858
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/mock/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
macro_rules! create_extended_rpc {
($config:expr) => {{
println!("Using Mock RPC for testing...");
let handle = thread::current()
let handle = std::thread::current()
.name()
.unwrap()
.split(":")
Expand Down
2 changes: 1 addition & 1 deletion core/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub async fn run_single_deposit(
// tracing::debug!("Slash or take sigs: {:#?}", slash_or_take_sigs);
// call burn_txs_signed_rpc
let mut operator_take_partial_sigs: Vec<Vec<[u8; 32]>> = Vec::new();
for (client, _, _) in verifiers.iter() {
for (client, ..) in verifiers.iter() {
let partial_sigs = client
.burn_txs_signed_rpc(deposit_outpoint, vec![], slash_or_take_sigs.clone())
.await
Expand Down
8 changes: 4 additions & 4 deletions core/tests/musig2.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bitcoin::opcodes::all::OP_CHECKSIG;
use bitcoin::{hashes::Hash, script, Amount, ScriptBuf};
use bitcoincore_rpc::{Client, RawTx};
use bitcoincore_rpc::RawTx;
use clementine_core::database::common::Database;
use clementine_core::mock::common;
use clementine_core::musig2::{aggregate_nonces, aggregate_partial_signatures, MuSigPubNonce};
Expand All @@ -24,7 +24,7 @@ async fn test_musig2_key_spend() {
let secp = bitcoin::secp256k1::Secp256k1::new();

let mut config: BridgeConfig = create_test_config_with_thread_name!("test_config_musig2.toml");
let rpc: ExtendedRpc<Client> = create_extended_rpc!(config);
let rpc: ExtendedRpc<_> = create_extended_rpc!(config);
let sks = config.all_verifiers_secret_keys.unwrap();
let kp_vec: Vec<Keypair> = sks
.iter()
Expand Down Expand Up @@ -127,7 +127,7 @@ async fn test_musig2_key_spend_with_script() {
let secp = bitcoin::secp256k1::Secp256k1::new();

let mut config: BridgeConfig = create_test_config_with_thread_name!("test_config_musig2.toml");
let rpc: ExtendedRpc<Client> = create_extended_rpc!(config);
let rpc: ExtendedRpc<_> = create_extended_rpc!(config);
let sks = config.all_verifiers_secret_keys.unwrap();
let kp_vec: Vec<Keypair> = sks
.iter()
Expand Down Expand Up @@ -231,7 +231,7 @@ async fn test_musig2_script_spend() {
let secp = bitcoin::secp256k1::Secp256k1::new();

let mut config: BridgeConfig = create_test_config_with_thread_name!("test_config_musig2.toml");
let rpc: ExtendedRpc<Client> = create_extended_rpc!(config);
let rpc: ExtendedRpc<_> = create_extended_rpc!(config);
let sks = config.all_verifiers_secret_keys.unwrap();
let kp_vec: Vec<Keypair> = sks
.iter()
Expand Down

0 comments on commit af48858

Please sign in to comment.