Skip to content

Commit

Permalink
rename var pruned_nodes in other context
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed Aug 20, 2024
1 parent 0f7beae commit dcd8922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ impl MastForest {

let old_nodes = mem::take(&mut self.nodes);
let old_root_ids = mem::take(&mut self.roots);
let (pruned_nodes, id_remappings) = remove_nodes(old_nodes, nodes_to_remove);
let (retained_nodes, id_remappings) = remove_nodes(old_nodes, nodes_to_remove);

self.remap_and_add_nodes(pruned_nodes, &id_remappings);
self.remap_and_add_nodes(retained_nodes, &id_remappings);
self.remap_and_add_roots(old_root_ids, &id_remappings);
Some(id_remappings)
}
Expand Down

0 comments on commit dcd8922

Please sign in to comment.