Skip to content

Commit

Permalink
Remove redundant field names in struct initialization
Browse files Browse the repository at this point in the history
clippy emits:

  error: redundant field names in struct initialization

As suggested, remove redundant field names in struct initialization
  • Loading branch information
tcharding committed Mar 28, 2024
1 parent fb3f36a commit 9ec6b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/psbt_sign_finalize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn main() {

psbt.inputs[0]
.partial_sigs
.insert(pk1, bitcoin::ecdsa::Signature { sig: sig1, hash_ty: hash_ty });
.insert(pk1, bitcoin::ecdsa::Signature { sig: sig1, hash_ty });

println!("{:#?}", psbt);
println!("{}", psbt);
Expand Down

0 comments on commit 9ec6b17

Please sign in to comment.