Skip to content

Commit

Permalink
refactor: remove obsolete clippy allows in non_finalized_state (#8140)
Browse files Browse the repository at this point in the history
  • Loading branch information
bishopcheckmate authored Jan 9, 2024
1 parent 704f88e commit 07693a1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions zebra-state/src/service/non_finalized_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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<Arc<Chain>, ValidateContextError> {
match self.find_chain(|chain| chain.non_finalized_tip_hash() == parent_hash) {
// Clone the existing Arc<Chain> in the non-finalized state
Expand Down

0 comments on commit 07693a1

Please sign in to comment.