We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cefa72 commit fabca77Copy full SHA for fabca77
gen/src/write.rs
@@ -80,15 +80,19 @@ pub(super) fn gen(
80
write_struct_with_methods(out, ety, methods);
81
}
82
83
- Api::TypeAlias(ety) => {
84
- if types.required_trivial.contains_key(&ety.ident) {
85
- check_trivial_extern_type(out, &ety.ident)
86
- }
87
88
_ => {}
89
90
91
+ out.next_section();
+ for api in apis {
+ if let Api::TypeAlias(ety) = api {
+ if types.required_trivial.contains_key(&ety.ident) {
+ check_trivial_extern_type(out, &ety.ident)
92
+ }
93
94
95
+
96
if !header {
97
out.begin_block("extern \"C\"");
98
write_exception_glue(out, apis);
0 commit comments