Skip to content

Commit e4a6fbd

Browse files
fix lint issues
1 parent 47e1790 commit e4a6fbd

File tree

1 file changed

+8
-4
lines changed
  • crates/engine/tree/src/tree

1 file changed

+8
-4
lines changed

crates/engine/tree/src/tree/mod.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,9 +2278,11 @@ where
22782278
// different view of the database.
22792279
let persistence_in_progress = self.persistence_state.in_progress();
22802280
if !persistence_in_progress {
2281-
state_root_result = match self
2282-
.compute_state_root_parallel(block.parent_hash, &hashed_state, missing_leaves_cache)
2283-
{
2281+
state_root_result = match self.compute_state_root_parallel(
2282+
block.parent_hash,
2283+
&hashed_state,
2284+
missing_leaves_cache,
2285+
) {
22842286
Ok((state_root, trie_output)) => Some((state_root, trie_output)),
22852287
Err(ParallelStateRootError::Provider(ProviderError::ConsistentView(error))) => {
22862288
debug!(target: "engine", %error, "Parallel state root computation failed consistency check, falling back");
@@ -2388,7 +2390,8 @@ where
23882390
// Extend with block we are validating root for.
23892391
input.append_ref(hashed_state);
23902392

2391-
ParallelStateRoot::new(consistent_view, input).incremental_root_with_updates_and_cache(missing_leaves_cache)
2393+
ParallelStateRoot::new(consistent_view, input)
2394+
.incremental_root_with_updates_and_cache(missing_leaves_cache)
23922395
}
23932396

23942397
/// Handles an error that occurred while inserting a block.
@@ -2632,6 +2635,7 @@ where
26322635
Ok(())
26332636
}
26342637

2638+
#[allow(clippy::type_complexity)]
26352639
fn setup_prefetch(
26362640
&self,
26372641
) -> (

0 commit comments

Comments
 (0)