Skip to content

Commit 7218e5e

Browse files
committed
Remove redundant field names
Clippy emits: warning: redundant field names in struct initialization As suggested, remove redundant field names.
1 parent 6a2577f commit 7218e5e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bitcoind-tests/tests/test_desc.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ pub fn test_desc_satisfy(
177177
rand::thread_rng().fill_bytes(&mut aux_rand);
178178
let schnorr_sig =
179179
secp.sign_schnorr_with_aux_rand(&msg, &internal_keypair, &aux_rand);
180-
psbt.inputs[0].tap_key_sig =
181-
Some(taproot::Signature { sig: schnorr_sig, hash_ty: hash_ty });
180+
psbt.inputs[0].tap_key_sig = Some(taproot::Signature { sig: schnorr_sig, hash_ty });
182181
} else {
183182
// No internal key
184183
}
@@ -205,7 +204,7 @@ pub fn test_desc_satisfy(
205204
x_only_pks[xonly_keypairs.iter().position(|&x| x == keypair).unwrap()];
206205
psbt.inputs[0]
207206
.tap_script_sigs
208-
.insert((x_only_pk, leaf_hash), taproot::Signature { sig, hash_ty: hash_ty });
207+
.insert((x_only_pk, leaf_hash), taproot::Signature { sig, hash_ty });
209208
}
210209
}
211210
_ => {
@@ -256,7 +255,7 @@ pub fn test_desc_satisfy(
256255
assert!(secp.verify_ecdsa(&msg, &sig, &pk.inner).is_ok());
257256
psbt.inputs[0]
258257
.partial_sigs
259-
.insert(pk, ecdsa::Signature { sig, hash_ty: hash_ty });
258+
.insert(pk, ecdsa::Signature { sig, hash_ty });
260259
}
261260
}
262261
}

0 commit comments

Comments
 (0)