From db0b603127f3dc6906945189cf60c008e0a90e2d Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Fri, 1 May 2026 20:55:18 +0200 Subject: [PATCH] =?UTF-8?q?fix(sp5):=20Task=20A1=20=E2=80=94=20MappedF32Bu?= =?UTF-8?q?ffer.len=20is=20a=20public=20field,=20not=20a=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test sp5_producer_unit_tests.rs:212 called `scratch_buf.len()` but `len` is declared as `pub len: usize` on MappedF32Buffer (mapped_pinned.rs:210), not a method. `cargo test --no-run` failed with E0599; library + cubin build was unaffected. One-character fix: `scratch_buf.len()` → `scratch_buf.len`. Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/ml/tests/sp5_producer_unit_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ml/tests/sp5_producer_unit_tests.rs b/crates/ml/tests/sp5_producer_unit_tests.rs index 116a03ed8..a9e607db8 100644 --- a/crates/ml/tests/sp5_producer_unit_tests.rs +++ b/crates/ml/tests/sp5_producer_unit_tests.rs @@ -209,7 +209,7 @@ fn sp5_pearl_1_atom_headroom_bootstrap_and_controller_step() { // Layout: branch b at scratch[71 + b*4 + {0,1,2,3}] = {mean, max_abs_dev, var, entropy} let scratch_buf = unsafe { MappedF32Buffer::new(SCRATCH_ATOM_OUT + 16) } .expect("alloc scratch_buf"); - let scratch_data: Vec = (0..scratch_buf.len()) + let scratch_data: Vec = (0..scratch_buf.len) .map(|i| { let rel = i as i32 - SCRATCH_Q_STATS as i32; if rel >= 0 && rel < 16 {