Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kartik Singhal <[email protected]>
  • Loading branch information
aborgna-q and qartik authored Mar 11, 2024
1 parent 74720a5 commit b689412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quantinuum-hugr/src/algorithm/nest_cfgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -929,7 +929,7 @@ pub(crate) mod test {
cfg_builder: &mut CFGBuilder<T>,
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(
Expand Down

0 comments on commit b689412

Please sign in to comment.