From b68941288355759298233fa1bd477c1f3c892368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Mon, 11 Mar 2024 15:51:49 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Kartik Singhal --- quantinuum-hugr/src/algorithm/nest_cfgs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quantinuum-hugr/src/algorithm/nest_cfgs.rs b/quantinuum-hugr/src/algorithm/nest_cfgs.rs index 48ebfd695..57a89455a 100644 --- a/quantinuum-hugr/src/algorithm/nest_cfgs.rs +++ b/quantinuum-hugr/src/algorithm/nest_cfgs.rs @@ -605,7 +605,7 @@ pub(crate) mod test { // \-> right -/ \-<--<-/ let mut cfg_builder = CFGBuilder::new(FunctionType::new(type_row![NAT], type_row![NAT]))?; - let pred_const = cfg_builder.add_constant(Const::unit_sum(0, 2)); // Nothing here cares which + let pred_const = cfg_builder.add_constant(Const::unit_sum(0, 2)); let const_unit = cfg_builder.add_constant(Const::unary_unit_sum()); let entry = n_identity( @@ -887,7 +887,7 @@ pub(crate) mod test { separate: bool, ) -> Result<(Hugr, BasicBlockID, BasicBlockID), BuildError> { let mut cfg_builder = CFGBuilder::new(FunctionType::new(type_row![NAT], type_row![NAT]))?; - let pred_const = cfg_builder.add_constant(Const::unit_sum(0, 2)); // Nothing here cares which + let pred_const = cfg_builder.add_constant(Const::unit_sum(0, 2)); let const_unit = cfg_builder.add_constant(Const::unary_unit_sum()); let entry = n_identity( @@ -929,7 +929,7 @@ pub(crate) mod test { cfg_builder: &mut CFGBuilder, separate_headers: bool, ) -> Result<(BasicBlockID, BasicBlockID), BuildError> { - let pred_const = cfg_builder.add_constant(Const::unit_sum(0, 2)); // Nothing here cares which + let pred_const = cfg_builder.add_constant(Const::unit_sum(0, 2)); let const_unit = cfg_builder.add_constant(Const::unary_unit_sum()); let entry = n_identity(