summaryrefslogtreecommitdiff
path: root/bindgen/codegen/dyngen.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-01-06 19:07:28 +0100
committerGitHub <noreply@github.com>2023-01-06 13:07:28 -0500
commit5875949e8e598fa9b0e3a018b3547815e2654fc8 (patch)
tree51e136ee161b86d3b71fbb3934d7f708b0b9c29f /bindgen/codegen/dyngen.rs
parent1abaf7ebbfee423ec524bd6e3b13f626cf32bc69 (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.rs2
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
}
});