optimize SHORT_COMMIT to bytes

This commit is contained in:
Simon Gardling
2022-05-20 12:44:18 -04:00
parent 276d1f3f20
commit 2ba11008b5
2 changed files with 11 additions and 14 deletions

View File

@@ -329,7 +329,7 @@ pub fn almost_variable(x: f64) -> Option<char> {
pub const HASH_LENGTH: usize = 8;
/// Represents bytes used to represent hash info
type HashBytes = [u8; HASH_LENGTH];
pub type HashBytes = [u8; HASH_LENGTH];
#[allow(dead_code)]
pub fn hashed_storage_create(hash: HashBytes, data: &[u8]) -> String {