@@ -97,7 +97,7 @@ pub struct TxCreationKeys {
97
97
98
98
impl Drop for TxCreationKeys {
99
99
fn drop ( & mut self ) {
100
- if self . is_owned && !self . inner . is_null ( ) {
100
+ if self . is_owned && !< * mut nativeTxCreationKeys > :: is_null ( self . inner ) {
101
101
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
102
102
}
103
103
}
@@ -192,7 +192,7 @@ pub extern "C" fn TxCreationKeys_new(mut per_commitment_point_arg: crate::c_type
192
192
impl Clone for TxCreationKeys {
193
193
fn clone ( & self ) -> Self {
194
194
Self {
195
- inner : if self . inner . is_null ( ) { std:: ptr:: null_mut ( ) } else {
195
+ inner : if < * mut nativeTxCreationKeys > :: is_null ( self . inner ) { std:: ptr:: null_mut ( ) } else {
196
196
Box :: into_raw ( Box :: new ( unsafe { & * self . inner } . clone ( ) ) ) } ,
197
197
is_owned : true ,
198
198
}
@@ -237,7 +237,7 @@ pub struct ChannelPublicKeys {
237
237
238
238
impl Drop for ChannelPublicKeys {
239
239
fn drop ( & mut self ) {
240
- if self . is_owned && !self . inner . is_null ( ) {
240
+ if self . is_owned && !< * mut nativeChannelPublicKeys > :: is_null ( self . inner ) {
241
241
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
242
242
}
243
243
}
@@ -346,7 +346,7 @@ pub extern "C" fn ChannelPublicKeys_new(mut funding_pubkey_arg: crate::c_types::
346
346
impl Clone for ChannelPublicKeys {
347
347
fn clone ( & self ) -> Self {
348
348
Self {
349
- inner : if self . inner . is_null ( ) { std:: ptr:: null_mut ( ) } else {
349
+ inner : if < * mut nativeChannelPublicKeys > :: is_null ( self . inner ) { std:: ptr:: null_mut ( ) } else {
350
350
Box :: into_raw ( Box :: new ( unsafe { & * self . inner } . clone ( ) ) ) } ,
351
351
is_owned : true ,
352
352
}
@@ -423,7 +423,7 @@ pub struct HTLCOutputInCommitment {
423
423
424
424
impl Drop for HTLCOutputInCommitment {
425
425
fn drop ( & mut self ) {
426
- if self . is_owned && !self . inner . is_null ( ) {
426
+ if self . is_owned && !< * mut nativeHTLCOutputInCommitment > :: is_null ( self . inner ) {
427
427
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
428
428
}
429
429
}
@@ -500,7 +500,7 @@ pub extern "C" fn HTLCOutputInCommitment_set_payment_hash(this_ptr: &mut HTLCOut
500
500
impl Clone for HTLCOutputInCommitment {
501
501
fn clone ( & self ) -> Self {
502
502
Self {
503
- inner : if self . inner . is_null ( ) { std:: ptr:: null_mut ( ) } else {
503
+ inner : if < * mut nativeHTLCOutputInCommitment > :: is_null ( self . inner ) { std:: ptr:: null_mut ( ) } else {
504
504
Box :: into_raw ( Box :: new ( unsafe { & * self . inner } . clone ( ) ) ) } ,
505
505
is_owned : true ,
506
506
}
@@ -573,7 +573,7 @@ pub struct ChannelTransactionParameters {
573
573
574
574
impl Drop for ChannelTransactionParameters {
575
575
fn drop ( & mut self ) {
576
- if self . is_owned && !self . inner . is_null ( ) {
576
+ if self . is_owned && !< * mut nativeChannelTransactionParameters > :: is_null ( self . inner ) {
577
577
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
578
578
}
579
579
}
@@ -674,7 +674,7 @@ pub extern "C" fn ChannelTransactionParameters_new(mut holder_pubkeys_arg: crate
674
674
impl Clone for ChannelTransactionParameters {
675
675
fn clone ( & self ) -> Self {
676
676
Self {
677
- inner : if self . inner . is_null ( ) { std:: ptr:: null_mut ( ) } else {
677
+ inner : if < * mut nativeChannelTransactionParameters > :: is_null ( self . inner ) { std:: ptr:: null_mut ( ) } else {
678
678
Box :: into_raw ( Box :: new ( unsafe { & * self . inner } . clone ( ) ) ) } ,
679
679
is_owned : true ,
680
680
}
@@ -705,7 +705,7 @@ pub struct CounterpartyChannelTransactionParameters {
705
705
706
706
impl Drop for CounterpartyChannelTransactionParameters {
707
707
fn drop ( & mut self ) {
708
- if self . is_owned && !self . inner . is_null ( ) {
708
+ if self . is_owned && !< * mut nativeCounterpartyChannelTransactionParameters > :: is_null ( self . inner ) {
709
709
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
710
710
}
711
711
}
@@ -760,7 +760,7 @@ pub extern "C" fn CounterpartyChannelTransactionParameters_new(mut pubkeys_arg:
760
760
impl Clone for CounterpartyChannelTransactionParameters {
761
761
fn clone ( & self ) -> Self {
762
762
Self {
763
- inner : if self . inner . is_null ( ) { std:: ptr:: null_mut ( ) } else {
763
+ inner : if < * mut nativeCounterpartyChannelTransactionParameters > :: is_null ( self . inner ) { std:: ptr:: null_mut ( ) } else {
764
764
Box :: into_raw ( Box :: new ( unsafe { & * self . inner } . clone ( ) ) ) } ,
765
765
is_owned : true ,
766
766
}
@@ -853,7 +853,7 @@ pub struct DirectedChannelTransactionParameters {
853
853
854
854
impl Drop for DirectedChannelTransactionParameters {
855
855
fn drop ( & mut self ) {
856
- if self . is_owned && !self . inner . is_null ( ) {
856
+ if self . is_owned && !< * mut nativeDirectedChannelTransactionParameters > :: is_null ( self . inner ) {
857
857
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
858
858
}
859
859
}
@@ -937,7 +937,7 @@ pub struct HolderCommitmentTransaction {
937
937
938
938
impl Drop for HolderCommitmentTransaction {
939
939
fn drop ( & mut self ) {
940
- if self . is_owned && !self . inner . is_null ( ) {
940
+ if self . is_owned && !< * mut nativeHolderCommitmentTransaction > :: is_null ( self . inner ) {
941
941
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
942
942
}
943
943
}
@@ -979,7 +979,7 @@ pub extern "C" fn HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_pt
979
979
impl Clone for HolderCommitmentTransaction {
980
980
fn clone ( & self ) -> Self {
981
981
Self {
982
- inner : if self . inner . is_null ( ) { std:: ptr:: null_mut ( ) } else {
982
+ inner : if < * mut nativeHolderCommitmentTransaction > :: is_null ( self . inner ) { std:: ptr:: null_mut ( ) } else {
983
983
Box :: into_raw ( Box :: new ( unsafe { & * self . inner } . clone ( ) ) ) } ,
984
984
is_owned : true ,
985
985
}
@@ -1034,7 +1034,7 @@ pub struct BuiltCommitmentTransaction {
1034
1034
1035
1035
impl Drop for BuiltCommitmentTransaction {
1036
1036
fn drop ( & mut self ) {
1037
- if self . is_owned && !self . inner . is_null ( ) {
1037
+ if self . is_owned && !< * mut nativeBuiltCommitmentTransaction > :: is_null ( self . inner ) {
1038
1038
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
1039
1039
}
1040
1040
}
@@ -1096,7 +1096,7 @@ pub extern "C" fn BuiltCommitmentTransaction_new(mut transaction_arg: crate::c_t
1096
1096
impl Clone for BuiltCommitmentTransaction {
1097
1097
fn clone ( & self ) -> Self {
1098
1098
Self {
1099
- inner : if self . inner . is_null ( ) { std:: ptr:: null_mut ( ) } else {
1099
+ inner : if < * mut nativeBuiltCommitmentTransaction > :: is_null ( self . inner ) { std:: ptr:: null_mut ( ) } else {
1100
1100
Box :: into_raw ( Box :: new ( unsafe { & * self . inner } . clone ( ) ) ) } ,
1101
1101
is_owned : true ,
1102
1102
}
@@ -1165,7 +1165,7 @@ pub struct CommitmentTransaction {
1165
1165
1166
1166
impl Drop for CommitmentTransaction {
1167
1167
fn drop ( & mut self ) {
1168
- if self . is_owned && !self . inner . is_null ( ) {
1168
+ if self . is_owned && !< * mut nativeCommitmentTransaction > :: is_null ( self . inner ) {
1169
1169
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
1170
1170
}
1171
1171
}
@@ -1190,7 +1190,7 @@ impl CommitmentTransaction {
1190
1190
impl Clone for CommitmentTransaction {
1191
1191
fn clone ( & self ) -> Self {
1192
1192
Self {
1193
- inner : if self . inner . is_null ( ) { std:: ptr:: null_mut ( ) } else {
1193
+ inner : if < * mut nativeCommitmentTransaction > :: is_null ( self . inner ) { std:: ptr:: null_mut ( ) } else {
1194
1194
Box :: into_raw ( Box :: new ( unsafe { & * self . inner } . clone ( ) ) ) } ,
1195
1195
is_owned : true ,
1196
1196
}
@@ -1299,7 +1299,7 @@ pub struct TrustedCommitmentTransaction {
1299
1299
1300
1300
impl Drop for TrustedCommitmentTransaction {
1301
1301
fn drop ( & mut self ) {
1302
- if self . is_owned && !self . inner . is_null ( ) {
1302
+ if self . is_owned && !< * mut nativeTrustedCommitmentTransaction > :: is_null ( self . inner ) {
1303
1303
let _ = unsafe { Box :: from_raw ( self . inner ) } ;
1304
1304
}
1305
1305
}
0 commit comments