Skip to content

Commit

Permalink
bitcoind-tests: Remove borrow
Browse files Browse the repository at this point in the history
Do as clippy says, remove the borrow.
  • Loading branch information
tcharding committed Jul 12, 2024
1 parent 84b5fe8 commit 3564e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoind-tests/tests/setup/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fn setup_keys(
let mut x_only_pks = vec![];

for sk in &sks {
let keypair = bitcoin::secp256k1::Keypair::from_secret_key(&secp_sign, &sk);
let keypair = bitcoin::secp256k1::Keypair::from_secret_key(&secp_sign, sk);
let (xpk, _parity) = XOnlyPublicKey::from_keypair(&keypair);
x_only_keypairs.push(keypair);
x_only_pks.push(xpk);
Expand Down

0 comments on commit 3564e9a

Please sign in to comment.