@@ -666,10 +666,6 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
666
666
// Override the default since Records contain an fmt with a lifetime:
667
667
"util::logger::Record" => Some ( "*const std::os::raw::c_char" ) ,
668
668
669
- // List of structs we map that aren't detected:
670
- "ln::features::InitFeatures" if is_ref && ptr_for_ref => Some ( "crate::ln::features::InitFeatures" ) ,
671
- "ln::features::InitFeatures" if is_ref => Some ( "*const crate::ln::features::InitFeatures" ) ,
672
- "ln::features::InitFeatures" => Some ( "crate::ln::features::InitFeatures" ) ,
673
669
_ => None ,
674
670
}
675
671
}
@@ -729,9 +725,6 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
729
725
"ln::channelmanager::PaymentPreimage" if is_ref => Some ( "&::lightning::ln::channelmanager::PaymentPreimage(unsafe { *" ) ,
730
726
"ln::channelmanager::PaymentSecret" => Some ( "::lightning::ln::channelmanager::PaymentSecret(" ) ,
731
727
732
- // List of structs we map (possibly during processing of other files):
733
- "ln::features::InitFeatures" if !is_ref => Some ( "*unsafe { Box::from_raw(" ) ,
734
-
735
728
// List of traits we map (possibly during processing of other files):
736
729
"crate::util::logger::Logger" => Some ( "" ) ,
737
730
@@ -784,10 +777,6 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
784
777
"ln::channelmanager::PaymentPreimage" if is_ref => Some ( " })" ) ,
785
778
"ln::channelmanager::PaymentSecret" => Some ( ".data)" ) ,
786
779
787
- // List of structs we map (possibly during processing of other files):
788
- "ln::features::InitFeatures" if is_ref => Some ( ".inner) }" ) ,
789
- "ln::features::InitFeatures" if !is_ref => Some ( ".take_inner()) }" ) ,
790
-
791
780
// List of traits we map (possibly during processing of other files):
792
781
"crate::util::logger::Logger" => Some ( "" ) ,
793
782
@@ -868,11 +857,6 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
868
857
// Override the default since Records contain an fmt with a lifetime:
869
858
"util::logger::Record" => Some ( "local_" ) ,
870
859
871
- // List of structs we map (possibly during processing of other files):
872
- "ln::features::InitFeatures" if is_ref && ptr_for_ref => Some ( "crate::ln::features::InitFeatures { inner: &mut " ) ,
873
- "ln::features::InitFeatures" if is_ref => Some ( "Box::into_raw(Box::new(crate::ln::features::InitFeatures { inner: &mut " ) ,
874
- "ln::features::InitFeatures" if !is_ref => Some ( "crate::ln::features::InitFeatures { inner: Box::into_raw(Box::new(" ) ,
875
-
876
860
_ => None ,
877
861
} . map ( |s| s. to_owned ( ) )
878
862
}
@@ -930,11 +914,6 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
930
914
// Override the default since Records contain an fmt with a lifetime:
931
915
"util::logger::Record" => Some ( ".as_ptr()" ) ,
932
916
933
- // List of structs we map (possibly during processing of other files):
934
- "ln::features::InitFeatures" if is_ref && ptr_for_ref => Some ( ", is_owned: false }" ) ,
935
- "ln::features::InitFeatures" if is_ref => Some ( ", is_owned: false }))" ) ,
936
- "ln::features::InitFeatures" => Some ( ")), is_owned: true }" ) ,
937
-
938
917
_ => None ,
939
918
} . map ( |s| s. to_owned ( ) )
940
919
}
0 commit comments