From b1db4ccc9a735496f17ea9996e17d4c850bc56de Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang <93241502+yhchiang-sol@users.noreply.github.com> Date: Wed, 7 Jun 2023 11:37:56 -0700 Subject: [PATCH] [TieredStorage] Make AccountMetaFlags and its fields public (#32004) #### Problem AccountMetaFlags and its fields are required to be public as the visibility of their get functions generated by `bit_fields` are tied to the visibility of their fields, and the get functions will later be used to support the TieredAccountMeta for AccountMeta. #### Summary of Changes Make AccountMetaFlags and its fields public --- runtime/src/tiered_storage/meta.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/tiered_storage/meta.rs b/runtime/src/tiered_storage/meta.rs index ed95d2f684..1c25756871 100644 --- a/runtime/src/tiered_storage/meta.rs +++ b/runtime/src/tiered_storage/meta.rs @@ -7,13 +7,13 @@ use modular_bitfield::prelude::*; #[bitfield(bits = 32)] #[repr(C)] #[derive(Debug, Default, Copy, Clone, Eq, PartialEq)] -pub(crate) struct AccountMetaFlags { +pub struct AccountMetaFlags { /// whether the account meta has rent epoch - has_rent_epoch: bool, + pub has_rent_epoch: bool, /// whether the account meta has account hash - has_account_hash: bool, + pub has_account_hash: bool, /// whether the account meta has write version - has_write_version: bool, + pub has_write_version: bool, /// the reserved bits. reserved: B29, }