From 303082078bae9a5598569a1dc795e090e281b066 Mon Sep 17 00:00:00 2001 From: bestmike007 Date: Tue, 22 Aug 2023 03:42:39 +0000 Subject: [PATCH] chore: fix compiler warnings Signed-off-by: bestmike007 --- stacks-common/src/util/hash.rs | 2 +- stackslib/src/chainstate/stacks/index/storage.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stacks-common/src/util/hash.rs b/stacks-common/src/util/hash.rs index 9660210dc9..3f7c165518 100644 --- a/stacks-common/src/util/hash.rs +++ b/stacks-common/src/util/hash.rs @@ -429,7 +429,7 @@ where row_hashes.reserve(nodes[i].len() / 2); for j in 0..(nodes[i].len() / 2) { - let h = MerkleTree::get_node_hash(&nodes[i][(2 * j)], &nodes[i][2 * j + 1]); + let h = MerkleTree::get_node_hash(&nodes[i][2 * j], &nodes[i][2 * j + 1]); row_hashes.push(h); } diff --git a/stackslib/src/chainstate/stacks/index/storage.rs b/stackslib/src/chainstate/stacks/index/storage.rs index 4bb57db524..21d1311f1f 100644 --- a/stackslib/src/chainstate/stacks/index/storage.rs +++ b/stackslib/src/chainstate/stacks/index/storage.rs @@ -875,7 +875,7 @@ impl TrieRAM { for j in 0..node_data.len() { let next_node = &mut self.data[node_data[j] as usize].0; if !next_node.is_leaf() { - let mut ptrs = next_node.ptrs_mut(); + let ptrs = next_node.ptrs_mut(); let num_children = ptrs.len(); for k in 0..num_children { if ptrs[k].id != TrieNodeID::Empty as u8 && !is_backptr(ptrs[k].id) {