From 073591a12154c04052aa84f92c5cb2a42bd234a0 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Fri, 8 Nov 2024 08:36:26 -0800 Subject: [PATCH] fix lint --- sia/src/rhp.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sia/src/rhp.rs b/sia/src/rhp.rs index 43c9114..7fc5a58 100644 --- a/sia/src/rhp.rs +++ b/sia/src/rhp.rs @@ -49,8 +49,8 @@ pub fn sector_root(sector: &[u8]) -> Hash256 { for (j, input) in inputs.iter_mut().enumerate() { input[0] = NODE_HASH_PREFIX[0]; let step = j * chunk_size / 2; - input[1..33].copy_from_slice(&nodes[step].as_ref()); - input[33..65].copy_from_slice(&nodes[step + chunk_size / 4].as_ref()); + input[1..33].copy_from_slice(nodes[step].as_ref()); + input[33..65].copy_from_slice(nodes[step + chunk_size / 4].as_ref()); } // hash them @@ -67,11 +67,11 @@ pub fn sector_root(sector: &[u8]) -> Hash256 { chunk_size *= 2; } // hash last two nodes into roots - Hash256::from(sum_node( + sum_node( ¶ms, &tree_hashes[0], &tree_hashes[tree_hashes.len() / 2], - )) + ) } #[cfg(test)]