Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Robin's suggestions #2

Co-authored-by: Robin Salen <[email protected]>
  • Loading branch information
BGluth and Nashtare authored Feb 2, 2024
1 parent 91f3794 commit a830ab3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/debug_tools/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl<'a> DepthDiffPerCallState<'a> {
}

fn find_diff_point_where_tries_begin_to_diff_depth_rec(
state: DepthDiffPerCallState,
state: &DepthDiffPerCallState,
depth_state: &mut DepthNodeDiffState,
) -> DiffDetectionState {
let a_hash = state.a.hash();
Expand Down Expand Up @@ -410,8 +410,7 @@ fn create_diff_detection_state_based_from_hashes(
fn get_value_from_node<T: PartialTrie>(n: &Node<T>) -> Option<&Vec<u8>> {
match n {
Node::Empty | Node::Hash(_) | Node::Extension { .. } => None,
Node::Branch { value, .. } => Some(value),
Node::Leaf { nibbles: _, value } => Some(value),
Node::Branch { value, .. } | Node::Leaf { nibbles: _, value } => Some(value),
}
}

Expand Down

0 comments on commit a830ab3

Please sign in to comment.