From 5ae11fd88d4dc9dde9d3c012cf3b8372dcba623f Mon Sep 17 00:00:00 2001 From: Alan Lawrence Date: Tue, 31 Oct 2023 17:51:25 +0000 Subject: [PATCH] Driveby: update serialize.rs to use NodeType::new --- src/hugr/serialize.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hugr/serialize.rs b/src/hugr/serialize.rs index 6505a9cb6..e3a26adee 100644 --- a/src/hugr/serialize.rs +++ b/src/hugr/serialize.rs @@ -222,10 +222,7 @@ impl TryFrom 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) )?; }