From e4f0b7b8caab984843025aae43a63d3a19721b11 Mon Sep 17 00:00:00 2001 From: Brice Dobry Date: Fri, 20 Dec 2024 15:00:40 -0500 Subject: [PATCH] chore: small changes from code review --- stacks-common/src/util/lru_cache.rs | 2 +- stackslib/src/core/nonce_cache.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stacks-common/src/util/lru_cache.rs b/stacks-common/src/util/lru_cache.rs index 41f55613e2..2f93911621 100644 --- a/stacks-common/src/util/lru_cache.rs +++ b/stacks-common/src/util/lru_cache.rs @@ -13,7 +13,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -use std::collections::HashMap; +use hashbrown::HashMap; /// Node in the doubly linked list struct Node { diff --git a/stackslib/src/core/nonce_cache.rs b/stackslib/src/core/nonce_cache.rs index 54c9acb563..80a8e3ffc7 100644 --- a/stackslib/src/core/nonce_cache.rs +++ b/stackslib/src/core/nonce_cache.rs @@ -219,7 +219,7 @@ mod tests { clarity_instance .begin_test_genesis_block( &StacksBlockId::sentinel(), - &StacksBlockId([0 as u8; 32]), + &StacksBlockId([0u8; 32]), &TEST_HEADER_DB, &TEST_BURN_STATE_DB, )