Skip to content

Commit

Permalink
Expose the name of the inner type of an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz committed Dec 2, 2024
1 parent 3dee8ba commit c171414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,9 @@ impl CodeGenerator for Type {
cb.field_visibility(FieldInfo {
type_name: &item.canonical_name(ctx),
field_name: "0",
field_type_name: inner_item
.expect_type()
.name(),
})
})
.unwrap_or(ctx.options().default_visibility);
Expand Down

0 comments on commit c171414

Please sign in to comment.