File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1564,7 +1564,7 @@ impl Builder {
1564
1564
. collect :: < Vec < _ > > ( ) ;
1565
1565
1566
1566
match Bindings :: generate ( options, input_unsaved_files) {
1567
- GenerateResult :: Ok ( bindings) => Ok ( bindings) ,
1567
+ GenerateResult :: Ok ( bindings) => Ok ( * bindings) ,
1568
1568
GenerateResult :: ShouldRestart { header } => self
1569
1569
. header ( header)
1570
1570
. generate_inline_functions ( false )
@@ -2351,7 +2351,7 @@ fn ensure_libclang_is_loaded() {}
2351
2351
2352
2352
#[ derive( Debug ) ]
2353
2353
enum GenerateResult {
2354
- Ok ( Bindings ) ,
2354
+ Ok ( Box < Bindings > ) ,
2355
2355
/// Error variant raised when bindgen requires to run again with a newly generated header
2356
2356
/// input.
2357
2357
#[ allow( dead_code) ]
@@ -2624,11 +2624,11 @@ impl Bindings {
2624
2624
2625
2625
let ( module, options, warnings) = codegen:: codegen ( context) ;
2626
2626
2627
- GenerateResult :: Ok ( Bindings {
2627
+ GenerateResult :: Ok ( Box :: new ( Bindings {
2628
2628
options,
2629
2629
warnings,
2630
2630
module,
2631
- } )
2631
+ } ) )
2632
2632
}
2633
2633
2634
2634
/// Write these bindings as source text to a file.
You can’t perform that action at this time.
0 commit comments