fix: add missing pub for tuple structs (#2080)
This commit is contained in:
parent
0116130b87
commit
8ecd566930
|
@ -100,7 +100,7 @@ impl Context {
|
||||||
};
|
};
|
||||||
|
|
||||||
if is_tuple {
|
if is_tuple {
|
||||||
fields.push(ty);
|
fields.push(quote!(pub #ty));
|
||||||
} else {
|
} else {
|
||||||
let field_name = util::safe_ident(&field.name().to_snake_case());
|
let field_name = util::safe_ident(&field.name().to_snake_case());
|
||||||
fields.push(quote! { pub #field_name: #ty });
|
fields.push(quote! { pub #field_name: #ty });
|
||||||
|
|
Loading…
Reference in New Issue