diff options
author | Christian Poveda Ruiz <31802960+pvdrz@users.noreply.github.com> | 2022-12-09 16:15:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 16:15:59 -0500 |
commit | c17c292c7328c5c91c42a875dd10aeb03c9e4e6f (patch) | |
tree | 91afef54c13fec7605df6dde11497c2c0bbe6530 | |
parent | 8582fb383dd00cc948eccd3c173ed46cdf61499e (diff) |
Fix clippy warnings (#2371)
-rw-r--r-- | bindgen/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bindgen/lib.rs b/bindgen/lib.rs index 3068d14e..6f943e69 100644 --- a/bindgen/lib.rs +++ b/bindgen/lib.rs @@ -1564,7 +1564,7 @@ impl Builder { .collect::<Vec<_>>(); match Bindings::generate(options, input_unsaved_files) { - GenerateResult::Ok(bindings) => Ok(bindings), + GenerateResult::Ok(bindings) => Ok(*bindings), GenerateResult::ShouldRestart { header } => self .header(header) .generate_inline_functions(false) @@ -2351,7 +2351,7 @@ fn ensure_libclang_is_loaded() {} #[derive(Debug)] enum GenerateResult { - Ok(Bindings), + Ok(Box<Bindings>), /// Error variant raised when bindgen requires to run again with a newly generated header /// input. #[allow(dead_code)] @@ -2624,11 +2624,11 @@ impl Bindings { let (module, options, warnings) = codegen::codegen(context); - GenerateResult::Ok(Bindings { + GenerateResult::Ok(Box::new(Bindings { options, warnings, module, - }) + })) } /// Write these bindings as source text to a file. |