Commit 36db570
Fix broken bench: add missing test_context field to WeakPoint literal (#132)
## Problem
`cargo bench` fails to compile (and so does any `cargo check
--all-targets`):
```
benches/scan_bench.rs:197: error[E0063]: missing field `test_context`
in initializer of `WeakPoint`
```
`WeakPoint` gained `pub test_context: Option<TestContext>` in v2.5.5
(`src/types.rs:325`), but the `WeakPoint { … }` literal in the
`bench_location_extraction` benchmark was never updated. This is a
**live**
break, not latent: `.github/workflows/e2e.yml` runs `cargo bench`.
The library and binaries are unaffected — this was the only error.
## Fix
Add `test_context: None,` to the benchmark's `WeakPoint` initializer.
## Verification
`cargo check --benches` → `Finished` (clean; only the two pre-existing
library warnings remain).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_0196movYBRwNw8vkLRaaFoTu
---
_Generated by [Claude
Code](https://claude.ai/code/session_0196movYBRwNw8vkLRaaFoTu)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3f7d0bb commit 36db570
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| |||
0 commit comments