From 9e67185541fa8376dcc5f41107713ca4e30d515b Mon Sep 17 00:00:00 2001 From: Christian Poveda Date: Fri, 9 Dec 2022 16:05:26 -0500 Subject: [PATCH] Fix clippy warnings --- bindgen/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bindgen/lib.rs b/bindgen/lib.rs index 3068d14ec8..6f943e6942 100644 --- a/bindgen/lib.rs +++ b/bindgen/lib.rs @@ -1564,7 +1564,7 @@ impl Builder { .collect::>(); 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), /// 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.