clippy: fix a couple of nits in `clippy --no-default-features`
We only check clippy in CI with --all-features, which usually is the best way to get maximum coverage. But if you try a couple other feature combos, especially those related to nostd, you can hit more code.
This commit is contained in:
parent
7d07fc3fb9
commit
12be5c0d27
|
@ -61,7 +61,7 @@ fn psbt_sign_taproot() {
|
||||||
let script3 = create_basic_single_sig_script(secp, sk_path[2].0); // m/86'/1'/0'/0/2
|
let script3 = create_basic_single_sig_script(secp, sk_path[2].0); // m/86'/1'/0'/0/2
|
||||||
|
|
||||||
// Just use one of the secret keys for the key path spend.
|
// Just use one of the secret keys for the key path spend.
|
||||||
let kp = Keypair::from_seckey_str(secp, &sk_path[2].0).expect("failed to create keypair");
|
let kp = Keypair::from_seckey_str(secp, sk_path[2].0).expect("failed to create keypair");
|
||||||
|
|
||||||
let internal_key = kp.x_only_public_key().0; // Ignore the parity.
|
let internal_key = kp.x_only_public_key().0; // Ignore the parity.
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ fn psbt_sign_taproot() {
|
||||||
// script path spend
|
// script path spend
|
||||||
{
|
{
|
||||||
// use private key of path "m/86'/1'/0'/0/1" as signing key
|
// use private key of path "m/86'/1'/0'/0/1" as signing key
|
||||||
let kp = Keypair::from_seckey_str(secp, &sk_path[1].0).expect("failed to create keypair");
|
let kp = Keypair::from_seckey_str(secp, sk_path[1].0).expect("failed to create keypair");
|
||||||
let x_only_pubkey = kp.x_only_public_key().0;
|
let x_only_pubkey = kp.x_only_public_key().0;
|
||||||
let signing_key_path = sk_path[1].1;
|
let signing_key_path = sk_path[1].1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue