@@ -250,13 +250,12 @@ impl<'a> MakeBcbCounters<'a> {
250250 fn make_branch_counters (
251251 & mut self ,
252252 traversal : & TraverseCoverageGraphWithLoops < ' _ > ,
253- branching_bcb : BasicCoverageBlock ,
253+ from_bcb : BasicCoverageBlock ,
254254 branching_counter_operand : CovTerm ,
255255 ) {
256- let branches = self . bcb_branches ( branching_bcb ) ;
256+ let branches = self . bcb_branches ( from_bcb ) ;
257257 debug ! (
258- "{:?} has some branch(es) without counters:\n {}" ,
259- branching_bcb,
258+ "{from_bcb:?} has some branch(es) without counters:\n {}" ,
260259 branches
261260 . iter( )
262261 . map( |branch| { format!( "{:?}: {:?}" , branch, self . branch_counter( branch) ) } )
@@ -281,14 +280,13 @@ impl<'a> MakeBcbCounters<'a> {
281280 if branch != expression_branch {
282281 let branch_counter_operand = if branch. is_only_path_to_target ( ) {
283282 debug ! (
284- " {:?} has only one incoming edge (from {:?}), so adding a \
285- counter",
286- branch, branching_bcb
283+ " {branch:?} has only one incoming edge (from {from_bcb:?}), \
284+ so adding a counter",
287285 ) ;
288286 self . get_or_make_counter_operand ( branch. target_bcb )
289287 } else {
290288 debug ! ( " {:?} has multiple incoming edges, so adding an edge counter" , branch) ;
291- self . get_or_make_edge_counter_operand ( branching_bcb , branch. target_bcb )
289+ self . get_or_make_edge_counter_operand ( from_bcb , branch. target_bcb )
292290 } ;
293291 if let Some ( sumup_counter_operand) =
294292 some_sumup_counter_operand. replace ( branch_counter_operand)
@@ -325,7 +323,7 @@ impl<'a> MakeBcbCounters<'a> {
325323 if expression_branch. is_only_path_to_target ( ) {
326324 self . coverage_counters . set_bcb_counter ( bcb, expression) ;
327325 } else {
328- self . coverage_counters . set_bcb_edge_counter ( branching_bcb , bcb, expression) ;
326+ self . coverage_counters . set_bcb_edge_counter ( from_bcb , bcb, expression) ;
329327 }
330328 }
331329
0 commit comments