Skip to content

Commit

Permalink
fix: add missing pub for tuple structs (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jan 27, 2023
1 parent 0116130 commit 8ecd566
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 });
Expand Down

0 comments on commit 8ecd566

Please sign in to comment.