We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 967ec5e + b9bf5e7 commit 4d04cf5Copy full SHA for 4d04cf5
gen/src/write.rs
@@ -910,6 +910,7 @@ fn write_rust_function_shim_decl(
910
sig: &Signature,
911
indirect_call: bool,
912
) {
913
+ begin_function_definition(out);
914
write_return_type(out, &sig.ret);
915
write!(out, "{}(", local_name);
916
for (i, arg) in sig.args.iter().enumerate() {
@@ -947,9 +948,6 @@ fn write_rust_function_shim_impl(
947
948
// We've already defined this inside the struct.
949
return;
950
}
- if !out.header {
951
- begin_function_definition(out);
952
- }
953
write_rust_function_shim_decl(out, local_name, sig, indirect_call);
954
if out.header {
955
writeln!(out, ";");
0 commit comments