@@ -127,7 +127,7 @@ impl Clone for ForwardNode {
127
127
#[ allow( unused) ]
128
128
/// Used only if an object of this type is returned as a trait impl by a method
129
129
pub ( crate ) extern "C" fn ForwardNode_clone_void ( this_ptr : * const c_void ) -> * mut c_void {
130
- Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * mut nativeForwardNode ) ) . clone ( ) } ) ) as * mut c_void
130
+ Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * const nativeForwardNode ) ) . clone ( ) } ) ) as * mut c_void
131
131
}
132
132
#[ no_mangle]
133
133
/// Creates a copy of the ForwardNode
@@ -258,7 +258,7 @@ impl Clone for ForwardTlvs {
258
258
#[ allow( unused) ]
259
259
/// Used only if an object of this type is returned as a trait impl by a method
260
260
pub ( crate ) extern "C" fn ForwardTlvs_clone_void ( this_ptr : * const c_void ) -> * mut c_void {
261
- Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * mut nativeForwardTlvs ) ) . clone ( ) } ) ) as * mut c_void
261
+ Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * const nativeForwardTlvs ) ) . clone ( ) } ) ) as * mut c_void
262
262
}
263
263
#[ no_mangle]
264
264
/// Creates a copy of the ForwardTlvs
@@ -360,7 +360,7 @@ impl Clone for ReceiveTlvs {
360
360
#[ allow( unused) ]
361
361
/// Used only if an object of this type is returned as a trait impl by a method
362
362
pub ( crate ) extern "C" fn ReceiveTlvs_clone_void ( this_ptr : * const c_void ) -> * mut c_void {
363
- Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * mut nativeReceiveTlvs ) ) . clone ( ) } ) ) as * mut c_void
363
+ Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * const nativeReceiveTlvs ) ) . clone ( ) } ) ) as * mut c_void
364
364
}
365
365
#[ no_mangle]
366
366
/// Creates a copy of the ReceiveTlvs
@@ -477,7 +477,7 @@ impl Clone for PaymentRelay {
477
477
#[ allow( unused) ]
478
478
/// Used only if an object of this type is returned as a trait impl by a method
479
479
pub ( crate ) extern "C" fn PaymentRelay_clone_void ( this_ptr : * const c_void ) -> * mut c_void {
480
- Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * mut nativePaymentRelay ) ) . clone ( ) } ) ) as * mut c_void
480
+ Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * const nativePaymentRelay ) ) . clone ( ) } ) ) as * mut c_void
481
481
}
482
482
#[ no_mangle]
483
483
/// Creates a copy of the PaymentRelay
@@ -537,15 +537,13 @@ impl PaymentConstraints {
537
537
ret
538
538
}
539
539
}
540
- /// The maximum total CLTV delta that is acceptable when relaying a payment over this
541
- /// [`BlindedHop`].
540
+ /// The maximum total CLTV that is acceptable when relaying a payment over this [`BlindedHop`].
542
541
#[ no_mangle]
543
542
pub extern "C" fn PaymentConstraints_get_max_cltv_expiry ( this_ptr : & PaymentConstraints ) -> u32 {
544
543
let mut inner_val = & mut this_ptr. get_native_mut_ref ( ) . max_cltv_expiry ;
545
544
* inner_val
546
545
}
547
- /// The maximum total CLTV delta that is acceptable when relaying a payment over this
548
- /// [`BlindedHop`].
546
+ /// The maximum total CLTV that is acceptable when relaying a payment over this [`BlindedHop`].
549
547
#[ no_mangle]
550
548
pub extern "C" fn PaymentConstraints_set_max_cltv_expiry ( this_ptr : & mut PaymentConstraints , mut val : u32 ) {
551
549
unsafe { & mut * ObjOps :: untweak_ptr ( this_ptr. inner ) } . max_cltv_expiry = val;
@@ -584,7 +582,7 @@ impl Clone for PaymentConstraints {
584
582
#[ allow( unused) ]
585
583
/// Used only if an object of this type is returned as a trait impl by a method
586
584
pub ( crate ) extern "C" fn PaymentConstraints_clone_void ( this_ptr : * const c_void ) -> * mut c_void {
587
- Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * mut nativePaymentConstraints ) ) . clone ( ) } ) ) as * mut c_void
585
+ Box :: into_raw ( Box :: new ( unsafe { ( * ( this_ptr as * const nativePaymentConstraints ) ) . clone ( ) } ) ) as * mut c_void
588
586
}
589
587
#[ no_mangle]
590
588
/// Creates a copy of the PaymentConstraints
@@ -596,7 +594,7 @@ pub extern "C" fn PaymentConstraints_clone(orig: &PaymentConstraints) -> Payment
596
594
pub extern "C" fn ForwardTlvs_write ( obj : & crate :: lightning:: blinded_path:: payment:: ForwardTlvs ) -> crate :: c_types:: derived:: CVec_u8Z {
597
595
crate :: c_types:: serialize_obj ( unsafe { & * obj } . get_native_ref ( ) )
598
596
}
599
- #[ no_mangle ]
597
+ #[ allow ( unused ) ]
600
598
pub ( crate ) extern "C" fn ForwardTlvs_write_void ( obj : * const c_void ) -> crate :: c_types:: derived:: CVec_u8Z {
601
599
crate :: c_types:: serialize_obj ( unsafe { & * ( obj as * const nativeForwardTlvs ) } )
602
600
}
@@ -605,7 +603,7 @@ pub(crate) extern "C" fn ForwardTlvs_write_void(obj: *const c_void) -> crate::c_
605
603
pub extern "C" fn ReceiveTlvs_write ( obj : & crate :: lightning:: blinded_path:: payment:: ReceiveTlvs ) -> crate :: c_types:: derived:: CVec_u8Z {
606
604
crate :: c_types:: serialize_obj ( unsafe { & * obj } . get_native_ref ( ) )
607
605
}
608
- #[ no_mangle ]
606
+ #[ allow ( unused ) ]
609
607
pub ( crate ) extern "C" fn ReceiveTlvs_write_void ( obj : * const c_void ) -> crate :: c_types:: derived:: CVec_u8Z {
610
608
crate :: c_types:: serialize_obj ( unsafe { & * ( obj as * const nativeReceiveTlvs ) } )
611
609
}
@@ -621,7 +619,7 @@ pub extern "C" fn ReceiveTlvs_read(ser: crate::c_types::u8slice) -> crate::c_typ
621
619
pub extern "C" fn PaymentRelay_write ( obj : & crate :: lightning:: blinded_path:: payment:: PaymentRelay ) -> crate :: c_types:: derived:: CVec_u8Z {
622
620
crate :: c_types:: serialize_obj ( unsafe { & * obj } . get_native_ref ( ) )
623
621
}
624
- #[ no_mangle ]
622
+ #[ allow ( unused ) ]
625
623
pub ( crate ) extern "C" fn PaymentRelay_write_void ( obj : * const c_void ) -> crate :: c_types:: derived:: CVec_u8Z {
626
624
crate :: c_types:: serialize_obj ( unsafe { & * ( obj as * const nativePaymentRelay ) } )
627
625
}
@@ -637,7 +635,7 @@ pub extern "C" fn PaymentRelay_read(ser: crate::c_types::u8slice) -> crate::c_ty
637
635
pub extern "C" fn PaymentConstraints_write ( obj : & crate :: lightning:: blinded_path:: payment:: PaymentConstraints ) -> crate :: c_types:: derived:: CVec_u8Z {
638
636
crate :: c_types:: serialize_obj ( unsafe { & * obj } . get_native_ref ( ) )
639
637
}
640
- #[ no_mangle ]
638
+ #[ allow ( unused ) ]
641
639
pub ( crate ) extern "C" fn PaymentConstraints_write_void ( obj : * const c_void ) -> crate :: c_types:: derived:: CVec_u8Z {
642
640
crate :: c_types:: serialize_obj ( unsafe { & * ( obj as * const nativePaymentConstraints ) } )
643
641
}
0 commit comments