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

@ -26,7 +26,7 @@ const MAX_BASE58_LEN: usize = 44;
AbiExample,
)]
#[repr(transparent)]
pub struct Hash(pub [u8; HASH_BYTES]);
pub struct Hash(pub(crate) [u8; HASH_BYTES]);
#[derive(Clone, Default)]
pub struct Hasher {