diff options
| author | Andre Weissflog <floooh@gmail.com> | 2023-09-23 19:59:10 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2023-09-23 19:59:10 +0200 |
| commit | 56cb4a4e1549e3f00df8a018bfaadd0bf3bf8767 (patch) | |
| tree | 62fb53ea0f563977c8ac7c8dc09b4a7f020b6d58 /bindgen/gen_rust.py | |
| parent | 48987bca0c801ae73569964bdfde5ecf233070a9 (diff) | |
fix rust bindings generation
Diffstat (limited to 'bindgen/gen_rust.py')
| -rw-r--r-- | bindgen/gen_rust.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindgen/gen_rust.py b/bindgen/gen_rust.py index 2a7a7ebb..0b6384c4 100644 --- a/bindgen/gen_rust.py +++ b/bindgen/gen_rust.py @@ -356,7 +356,7 @@ def funcptr_result_c(field_type): if res_type == "void": return "" elif is_prim_type(res_type): - return as_rust_prim_type(res_type) + return f" -> {as_rust_prim_type(res_type)}" elif util.is_const_void_ptr(res_type): return " -> *const core::ffi::c_void" elif util.is_void_ptr(res_type): |