Reduce visibility of Hash struct contents

This commit is contained in:
Michael Vines
2021-10-18 21:59:12 -07:00
parent 3f559cc2c9
commit 2b76ea51b4
5 changed files with 9 additions and 7 deletions

View File

@ -4300,7 +4300,9 @@ impl AccountsDb {
hasher.update(owner.as_ref());
hasher.update(pubkey.as_ref());
Hash(<[u8; solana_sdk::hash::HASH_BYTES]>::try_from(hasher.finalize().as_slice()).unwrap())
Hash::new_from_array(
<[u8; solana_sdk::hash::HASH_BYTES]>::try_from(hasher.finalize().as_slice()).unwrap(),
)
}
fn bulk_assign_write_version(&self, count: usize) -> StoredMetaWriteVersion {