File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1564,7 +1564,7 @@ impl Builder {
15641564 . collect :: < Vec < _ > > ( ) ;
15651565
15661566 match Bindings :: generate ( options, input_unsaved_files) {
1567- GenerateResult :: Ok ( bindings) => Ok ( bindings) ,
1567+ GenerateResult :: Ok ( bindings) => Ok ( * bindings) ,
15681568 GenerateResult :: ShouldRestart { header } => self
15691569 . header ( header)
15701570 . generate_inline_functions ( false )
@@ -2351,7 +2351,7 @@ fn ensure_libclang_is_loaded() {}
23512351
23522352#[ derive( Debug ) ]
23532353enum GenerateResult {
2354- Ok ( Bindings ) ,
2354+ Ok ( Box < Bindings > ) ,
23552355 /// Error variant raised when bindgen requires to run again with a newly generated header
23562356 /// input.
23572357 #[ allow( dead_code) ]
@@ -2624,11 +2624,11 @@ impl Bindings {
26242624
26252625 let ( module, options, warnings) = codegen:: codegen ( context) ;
26262626
2627- GenerateResult :: Ok ( Bindings {
2627+ GenerateResult :: Ok ( Box :: new ( Bindings {
26282628 options,
26292629 warnings,
26302630 module,
2631- } )
2631+ } ) )
26322632 }
26332633
26342634 /// Write these bindings as source text to a file.
You can’t perform that action at this time.
0 commit comments