File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -544,10 +544,7 @@ impl Builder {
544
544
if is_destroy || trampoline. scope . is_async ( ) {
545
545
format ! ( "Box_::from_raw({func} as *mut _)" )
546
546
} else if trampoline. scope . is_call ( ) {
547
- format ! (
548
- "{} as *const _ as usize as *mut {}" ,
549
- func, trampoline. bound_name
550
- )
547
+ format ! ( "{} as *mut {}" , func, trampoline. bound_name)
551
548
} else {
552
549
format ! ( "&*({func} as *mut _)" )
553
550
} ,
@@ -1016,7 +1013,7 @@ impl Builder {
1016
1013
Chunk :: FfiCallParameter {
1017
1014
transformation_type : TransformationType :: ToGlibDirect {
1018
1015
name : if all_call {
1019
- format ! ( "super_callback{pos} as *const _ as usize as *mut _" )
1016
+ format ! ( "super_callback{pos} as *const _ as *mut _" )
1020
1017
} else {
1021
1018
format ! ( "Box_::into_raw(super_callback{pos}) as *mut _" )
1022
1019
} ,
You can’t perform that action at this time.
0 commit comments