Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Fischman committed Apr 11, 2024
1 parent 9d5e2e9 commit 901a5fe
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/rvsdg/rvsdg2svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,13 @@ fn mk_node_and_input_edges(index: Id, nodes: &[RvsdgBody]) -> (Node, Vec<Edge>)
then_branch,
else_branch,
} => (
Node::Match("if".to_string(), vec![
("true".into(), mk_region(inputs.len(), then_branch, nodes)),
("false".into(), mk_region(inputs.len(), else_branch, nodes)),
]),
Node::Match(
"if".to_string(),
vec![
("true".into(), mk_region(inputs.len(), then_branch, nodes)),
("false".into(), mk_region(inputs.len(), else_branch, nodes)),
],
),
once(pred).chain(inputs).copied().collect::<Vec<_>>(),
),
RvsdgBody::Theta {
Expand Down

0 comments on commit 901a5fe

Please sign in to comment.