Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Jul 26, 2023
1 parent 158ce5e commit aa1749b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/algorithms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ impl EGraph {
.collect::<Vec<_>>()
.join(", ");
// Remove leaf children from children
parent_node.children.retain(|child| !leaf_children.contains(child));
parent_node
.children
.retain(|child| !leaf_children.contains(child));
let new_op = format!("{}({})", parent_node.op, args);
parent_node.op = new_op;
}
Expand Down

0 comments on commit aa1749b

Please sign in to comment.