Skip to content

Commit 9ec6b17

Browse files
committed
Remove redundant field names in struct initialization
clippy emits: error: redundant field names in struct initialization As suggested, remove redundant field names in struct initialization
1 parent fb3f36a commit 9ec6b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/psbt_sign_finalize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fn main() {
133133

134134
psbt.inputs[0]
135135
.partial_sigs
136-
.insert(pk1, bitcoin::ecdsa::Signature { sig: sig1, hash_ty: hash_ty });
136+
.insert(pk1, bitcoin::ecdsa::Signature { sig: sig1, hash_ty });
137137

138138
println!("{:#?}", psbt);
139139
println!("{}", psbt);

0 commit comments

Comments
 (0)