Skip to content

Commit

Permalink
customize tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsIrl authored Nov 17, 2024
1 parent b9b8f88 commit 2d0cf5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindgen/ir/enumeration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ impl Enum {
out.write("enum ");
}

write!(out, "{} tag;", tag_name);
write!(out, "{} tag;", tag_name, self.annotations.atom("tag-field-name").map_or(&"tag", |tag_field_name| tag_field_name.expect("tag-field-name")));

if wrap_tag {
out.close_brace(true);
Expand Down

0 comments on commit 2d0cf5c

Please sign in to comment.