Skip to content

Commit c17c292

Browse files
authored
Fix clippy warnings (#2371)
1 parent 8582fb3 commit c17c292

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bindgen/lib.rs

+4-4
Original file line numberDiff line numberDiff 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)]
23532353
enum 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.

0 commit comments

Comments
 (0)