Skip to content

Commit

Permalink
box comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Dec 11, 2023
1 parent 64d98df commit 3db7b43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extract/global_greedy_dag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl TermDag {
.unwrap();

let mut cost = node_cost + self.total_cost(children[biggest_child]);
// wrap in a box so that we can mutate it during the loop
let mut reachable = Box::new(self.info[children[biggest_child]].reachable.clone());
let next_id = self.nodes.len();

Expand Down

0 comments on commit 3db7b43

Please sign in to comment.