diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2023-01-06 19:07:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 13:07:28 -0500 |
commit | 5875949e8e598fa9b0e3a018b3547815e2654fc8 (patch) | |
tree | 51e136ee161b86d3b71fbb3934d7f708b0b9c29f /bindgen/codegen/dyngen.rs | |
parent | 1abaf7ebbfee423ec524bd6e3b13f626cf32bc69 (diff) |
codegen: Look through typedefs to detect void return type. (#2379)
* codegen: Look through typedefs to detect void return type.
And reuse a bit more code.
Should fix #2377, but needs a test (can't run tests atm).
* Add tests
* Run rustfmt
* Update changelog
Co-authored-by: Christian Poveda <christian.poveda@ferrous-systems.com>
Diffstat (limited to 'bindgen/codegen/dyngen.rs')
-rw-r--r-- | bindgen/codegen/dyngen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindgen/codegen/dyngen.rs b/bindgen/codegen/dyngen.rs index 5e734ccd..d8ea8117 100644 --- a/bindgen/codegen/dyngen.rs +++ b/bindgen/codegen/dyngen.rs @@ -170,7 +170,7 @@ impl DynamicItems { if !is_variadic { self.struct_implementation.push(quote! { #(#attributes)* - pub unsafe fn #ident ( &self, #( #args ),* ) -> #ret_ty { + pub unsafe fn #ident ( &self, #( #args ),* ) #ret_ty { #call_body } }); |