From a6319904d155772d3df1f95dbfc57eba3c2f9ce9 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Mon, 26 Oct 2026 08:39:58 -0400 Subject: [PATCH] Restore the loop count that loops_among's refactor dropped The S3776 split moved the loop-detection body into loops_among without the 'let n = circ.len()' it reads, so calc failed to compile and the Sonar build broke. Restore the binding from main. --- crates/calc/src/recalc.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/calc/src/recalc.rs b/crates/calc/src/recalc.rs index 72d7b217f..c34299dc6 100644 --- a/crates/calc/src/recalc.rs +++ b/crates/calc/src/recalc.rs @@ -1025,6 +1025,7 @@ impl Calc { if circ.is_empty() { return Vec::new(); } + let n = circ.len(); let index: HashMap = circ.iter().enumerate().map(|(i, k)| (*k, i)).collect(); // Edges from a cell to the `#CIRC!` formulas that read it; loops are the same either way. let mut deps = Vec::new();