Skip to content

Commit

Permalink
fix: filter unmodified_bottom in initialize with placeholders (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
aner-starkware authored Jun 7, 2024
1 parent 618afae commit 6b80ba9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ impl FilledTreeImpl {
) -> HashMap<NodeIndex, Mutex<Option<FilledNode<LeafDataImpl>>>> {
let mut filled_tree_map = HashMap::new();
for (index, node) in updated_skeleton.get_nodes() {
if !matches!(node, UpdatedSkeletonNode::Sibling(_)) {
if !matches!(
node,
UpdatedSkeletonNode::Sibling(_) | UpdatedSkeletonNode::UnmodifiedBottom(_)
) {
filled_tree_map.insert(index, Mutex::new(None));
}
}
Expand Down

0 comments on commit 6b80ba9

Please sign in to comment.