From 07693a159655d2ebdb69525f2816c52a5198d954 Mon Sep 17 00:00:00 2001 From: bishopcheckmate <153523784+bishopcheckmate@users.noreply.github.com> Date: Tue, 9 Jan 2024 02:06:26 +0100 Subject: [PATCH] refactor: remove obsolete clippy allows in non_finalized_state (#8140) --- zebra-state/src/service/non_finalized_state.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/zebra-state/src/service/non_finalized_state.rs b/zebra-state/src/service/non_finalized_state.rs index 7d75f05e..cc9cfbab 100644 --- a/zebra-state/src/service/non_finalized_state.rs +++ b/zebra-state/src/service/non_finalized_state.rs @@ -182,7 +182,6 @@ impl NonFinalizedState { // Chain::cmp uses the partial cumulative work, and the hash of the tip block. // Neither of these fields has interior mutability. // (And when the tip block is dropped for a chain, the chain is also dropped.) - #[allow(clippy::mutable_key_type)] let chains = mem::take(&mut self.chain_set); let mut chains = chains.into_iter(); @@ -582,7 +581,6 @@ impl NonFinalizedState { /// /// The chain can be an existing chain in the non-finalized state, or a freshly /// created fork. - #[allow(clippy::unwrap_in_result)] fn parent_chain(&self, parent_hash: block::Hash) -> Result, ValidateContextError> { match self.find_chain(|chain| chain.non_finalized_tip_hash() == parent_hash) { // Clone the existing Arc in the non-finalized state