cleanup hashed_storage_create

This commit is contained in:
Simon Gardling
2022-06-12 15:33:38 -04:00
parent 35dc36014d
commit 7c2116d548
2 changed files with 4 additions and 4 deletions

View File

@@ -143,8 +143,8 @@ pub const HASH_LENGTH: usize = 8;
pub type HashBytes = [u8; HASH_LENGTH];
#[allow(dead_code)]
pub fn hashed_storage_create(hash: HashBytes, data: &[u8]) -> String {
unsafe { std::mem::transmute::<Vec<u8>, String>([&hash, data].concat()) }
pub fn hashed_storage_create<'a>(hash: &HashBytes, data: &[u8]) -> String {
unsafe { std::mem::transmute::<Vec<u8>, String>([hash, data].concat()) }
}
#[allow(dead_code)]