@@ -129,7 +129,7 @@ impl<B: HugrMut> CFGBuilder<B> {
129
129
inputs : SimpleRow ,
130
130
predicate_variants : Vec < ClassicRow > ,
131
131
other_outputs : SimpleRow ,
132
- ) -> Result < BlockBuilder < & mut < Self as Buildable > :: Base > , BuildError > {
132
+ ) -> Result < BlockBuilder < & mut B > , BuildError > {
133
133
self . any_block_builder ( inputs, predicate_variants, other_outputs, false )
134
134
}
135
135
@@ -139,7 +139,7 @@ impl<B: HugrMut> CFGBuilder<B> {
139
139
predicate_variants : Vec < ClassicRow > ,
140
140
other_outputs : SimpleRow ,
141
141
entry : bool ,
142
- ) -> Result < BlockBuilder < & mut < Self as Buildable > :: Base > , BuildError > {
142
+ ) -> Result < BlockBuilder < & mut B > , BuildError > {
143
143
let op = OpType :: BasicBlock ( BasicBlock :: DFB {
144
144
inputs : inputs. clone ( ) ,
145
145
other_outputs : other_outputs. clone ( ) ,
@@ -173,7 +173,7 @@ impl<B: HugrMut> CFGBuilder<B> {
173
173
inputs : SimpleRow ,
174
174
outputs : SimpleRow ,
175
175
n_cases : usize ,
176
- ) -> Result < BlockBuilder < & mut < Self as Buildable > :: Base > , BuildError > {
176
+ ) -> Result < BlockBuilder < & mut B > , BuildError > {
177
177
self . block_builder ( inputs, vec ! [ type_row![ ] ; n_cases] , outputs)
178
178
}
179
179
@@ -188,7 +188,7 @@ impl<B: HugrMut> CFGBuilder<B> {
188
188
& mut self ,
189
189
predicate_variants : Vec < ClassicRow > ,
190
190
other_outputs : SimpleRow ,
191
- ) -> Result < BlockBuilder < & mut < Self as Buildable > :: Base > , BuildError > {
191
+ ) -> Result < BlockBuilder < & mut B > , BuildError > {
192
192
let inputs = self
193
193
. inputs
194
194
. take ( )
@@ -206,7 +206,7 @@ impl<B: HugrMut> CFGBuilder<B> {
206
206
& mut self ,
207
207
outputs : SimpleRow ,
208
208
n_cases : usize ,
209
- ) -> Result < BlockBuilder < & mut < Self as Buildable > :: Base > , BuildError > {
209
+ ) -> Result < BlockBuilder < & mut B > , BuildError > {
210
210
self . entry_builder ( vec ! [ type_row![ ] ; n_cases] , outputs)
211
211
}
212
212
0 commit comments