@@ -19,10 +19,7 @@ pub type C2Tuple_usizeTransactionZ = crate::c_types::C2TupleTempl<usize, crate::
19
19
pub static C2Tuple_usizeTransactionZ_free : extern "C" fn ( C2Tuple_usizeTransactionZ ) = crate :: c_types:: C2TupleTempl_free :: < usize , crate :: c_types:: Transaction > ;
20
20
#[ no_mangle]
21
21
pub extern "C" fn C2Tuple_usizeTransactionZ_new ( a : usize , b : crate :: c_types:: Transaction ) -> C2Tuple_usizeTransactionZ {
22
- C2Tuple_usizeTransactionZ {
23
- a : Box :: into_raw ( Box :: new ( a) ) ,
24
- b : Box :: into_raw ( Box :: new ( b) ) ,
25
- }
22
+ C2Tuple_usizeTransactionZ { a, b, }
26
23
}
27
24
28
25
#[ no_mangle]
@@ -67,10 +64,7 @@ pub type C2Tuple_OutPointScriptZ = crate::c_types::C2TupleTempl<crate::chain::tr
67
64
pub static C2Tuple_OutPointScriptZ_free : extern "C" fn ( C2Tuple_OutPointScriptZ ) = crate :: c_types:: C2TupleTempl_free :: < crate :: chain:: transaction:: OutPoint , crate :: c_types:: derived:: CVec_u8Z > ;
68
65
#[ no_mangle]
69
66
pub extern "C" fn C2Tuple_OutPointScriptZ_new ( a : crate :: chain:: transaction:: OutPoint , b : crate :: c_types:: derived:: CVec_u8Z ) -> C2Tuple_OutPointScriptZ {
70
- C2Tuple_OutPointScriptZ {
71
- a : Box :: into_raw ( Box :: new ( a) ) ,
72
- b : Box :: into_raw ( Box :: new ( b) ) ,
73
- }
67
+ C2Tuple_OutPointScriptZ { a, b, }
74
68
}
75
69
76
70
#[ no_mangle]
@@ -89,10 +83,7 @@ pub type C2Tuple_TxidCVec_TxOutZZ = crate::c_types::C2TupleTempl<crate::c_types:
89
83
pub static C2Tuple_TxidCVec_TxOutZZ_free : extern "C" fn ( C2Tuple_TxidCVec_TxOutZZ ) = crate :: c_types:: C2TupleTempl_free :: < crate :: c_types:: ThirtyTwoBytes , crate :: c_types:: CVecTempl < crate :: c_types:: TxOut > > ;
90
84
#[ no_mangle]
91
85
pub extern "C" fn C2Tuple_TxidCVec_TxOutZZ_new ( a : crate :: c_types:: ThirtyTwoBytes , b : crate :: c_types:: derived:: CVec_TxOutZ ) -> C2Tuple_TxidCVec_TxOutZZ {
92
- C2Tuple_TxidCVec_TxOutZZ {
93
- a : Box :: into_raw ( Box :: new ( a) ) ,
94
- b : Box :: into_raw ( Box :: new ( b) ) ,
95
- }
86
+ C2Tuple_TxidCVec_TxOutZZ { a, b, }
96
87
}
97
88
98
89
#[ no_mangle]
@@ -106,10 +97,7 @@ pub type C2Tuple_u64u64Z = crate::c_types::C2TupleTempl<u64, u64>;
106
97
pub static C2Tuple_u64u64Z_free : extern "C" fn ( C2Tuple_u64u64Z ) = crate :: c_types:: C2TupleTempl_free :: < u64 , u64 > ;
107
98
#[ no_mangle]
108
99
pub extern "C" fn C2Tuple_u64u64Z_new ( a : u64 , b : u64 ) -> C2Tuple_u64u64Z {
109
- C2Tuple_u64u64Z {
110
- a : Box :: into_raw ( Box :: new ( a) ) ,
111
- b : Box :: into_raw ( Box :: new ( b) ) ,
112
- }
100
+ C2Tuple_u64u64Z { a, b, }
113
101
}
114
102
115
103
#[ no_mangle]
@@ -128,10 +116,7 @@ pub type C2Tuple_SignatureCVec_SignatureZZ = crate::c_types::C2TupleTempl<crate:
128
116
pub static C2Tuple_SignatureCVec_SignatureZZ_free : extern "C" fn ( C2Tuple_SignatureCVec_SignatureZZ ) = crate :: c_types:: C2TupleTempl_free :: < crate :: c_types:: Signature , crate :: c_types:: CVecTempl < crate :: c_types:: Signature > > ;
129
117
#[ no_mangle]
130
118
pub extern "C" fn C2Tuple_SignatureCVec_SignatureZZ_new ( a : crate :: c_types:: Signature , b : crate :: c_types:: derived:: CVec_SignatureZ ) -> C2Tuple_SignatureCVec_SignatureZZ {
131
- C2Tuple_SignatureCVec_SignatureZZ {
132
- a : Box :: into_raw ( Box :: new ( a) ) ,
133
- b : Box :: into_raw ( Box :: new ( b) ) ,
134
- }
119
+ C2Tuple_SignatureCVec_SignatureZZ { a, b, }
135
120
}
136
121
137
122
#[ no_mangle]
@@ -269,11 +254,7 @@ pub type C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ = crate::c_types
269
254
pub static C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free : extern "C" fn ( C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ ) = crate :: c_types:: C3TupleTempl_free :: < crate :: ln:: msgs:: ChannelAnnouncement , crate :: ln:: msgs:: ChannelUpdate , crate :: ln:: msgs:: ChannelUpdate > ;
270
255
#[ no_mangle]
271
256
pub extern "C" fn C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new ( a : crate :: ln:: msgs:: ChannelAnnouncement , b : crate :: ln:: msgs:: ChannelUpdate , c : crate :: ln:: msgs:: ChannelUpdate ) -> C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ {
272
- C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ {
273
- a : Box :: into_raw ( Box :: new ( a) ) ,
274
- b : Box :: into_raw ( Box :: new ( b) ) ,
275
- c : Box :: into_raw ( Box :: new ( c) ) ,
276
- }
257
+ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ { a, b, c, }
277
258
}
278
259
279
260
#[ no_mangle]
@@ -375,10 +356,7 @@ pub type C2Tuple_HTLCOutputInCommitmentSignatureZ = crate::c_types::C2TupleTempl
375
356
pub static C2Tuple_HTLCOutputInCommitmentSignatureZ_free : extern "C" fn ( C2Tuple_HTLCOutputInCommitmentSignatureZ ) = crate :: c_types:: C2TupleTempl_free :: < crate :: ln:: chan_utils:: HTLCOutputInCommitment , crate :: c_types:: Signature > ;
376
357
#[ no_mangle]
377
358
pub extern "C" fn C2Tuple_HTLCOutputInCommitmentSignatureZ_new ( a : crate :: ln:: chan_utils:: HTLCOutputInCommitment , b : crate :: c_types:: Signature ) -> C2Tuple_HTLCOutputInCommitmentSignatureZ {
378
- C2Tuple_HTLCOutputInCommitmentSignatureZ {
379
- a : Box :: into_raw ( Box :: new ( a) ) ,
380
- b : Box :: into_raw ( Box :: new ( b) ) ,
381
- }
359
+ C2Tuple_HTLCOutputInCommitmentSignatureZ { a, b, }
382
360
}
383
361
384
362
#[ no_mangle]
0 commit comments