split bytes utils into unit
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -38,7 +38,7 @@ impl Data {
|
||||
.map(|chain| {
|
||||
chain
|
||||
.chunks_exact(size_of::<u64>())
|
||||
.map(|chunk| utils::u64_from_bytes(chunk).expect("byte length is correct"))
|
||||
.map(utils::u64_from_u8)
|
||||
.collect::<Arc<[u64]>>()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user