fix: add missing pub for tuple structs (#2080)

This commit is contained in:
Matthias Seitz 2023-01-27 19:07:27 +01:00 committed by GitHub
parent 0116130b87
commit 8ecd566930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ impl Context {
};
if is_tuple {
fields.push(ty);
fields.push(quote!(pub #ty));
} else {
let field_name = util::safe_ident(&field.name().to_snake_case());
fields.push(quote! { pub #field_name: #ty });