Skip to content

Commit

Permalink
refactor: Default n_identity to open extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
croyzor committed Sep 4, 2023
1 parent 9dfc995 commit 3f97250
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/builder/conditional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ impl<B: AsMut<Hugr> + AsRef<Hugr>> ConditionalBuilder<B> {
// TODO: Allow this to be non-pure
self.hugr_mut().add_op_before(sibling_node, case_op)?
} else {
// TODO: Allow this to be non-pure
self.add_child_op(case_op)?
};

Expand Down
3 changes: 1 addition & 2 deletions src/builder/dataflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ pub(crate) mod test {

let inner_builder = func_builder.dfg_builder(
FunctionType::new(type_row![NAT], type_row![NAT]),
// TODO: This should be None
Some(ExtensionSet::new()),
None,
[int],
)?;
let inner_id = n_identity(inner_builder)?;
Expand Down

0 comments on commit 3f97250

Please sign in to comment.