From b3a7b3374194d0fd8ec9ada9d0044cbaf4d59370 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Fri, 21 Jan 2022 12:17:12 +0000 Subject: [PATCH] make storage-n-map fields public too --- codegen/src/api/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/src/api/storage.rs b/codegen/src/api/storage.rs index 56cdbb4cef..6e2065c8a8 100644 --- a/codegen/src/api/storage.rs +++ b/codegen/src/api/storage.rs @@ -120,7 +120,7 @@ fn generate_storage_entry_fns( fields.iter().map(|(_, field_type)| field_type); let field_names = fields.iter().map(|(field_name, _)| field_name); let entry_struct = quote! { - pub struct #entry_struct_ident( #( #tuple_struct_fields ),* ); + pub struct #entry_struct_ident( #( pub #tuple_struct_fields ),* ); }; let constructor = quote!( #entry_struct_ident( #( #field_names ),* ) );