Skip to content

Commit

Permalink
Driveby: update serialize.rs to use NodeType::new
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Oct 31, 2023
1 parent 0b3442a commit 5ae11fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/hugr/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,7 @@ impl TryFrom<SerHugrV0> for Hugr {
for node_ser in nodes {
hugr.add_node_with_parent(
node_ser.parent,
match node_ser.input_extensions {
None => NodeType::new_open(node_ser.op),
Some(rs) => NodeType::new(node_ser.op, rs),
},
NodeType::new(node_ser.op, node_ser.input_extensions)
)?;
}

Expand Down

0 comments on commit 5ae11fd

Please sign in to comment.