Skip to content

Commit 36db570

Browse files
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

File tree

benches/scan_bench.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ fn bench_location_extraction(c: &mut Criterion) {
203203
description: "test".to_string(),
204204
recommended_attack: vec![],
205205
suppressed: false,
206+
test_context: None,
206207
};
207208
100
208209
];

0 commit comments

Comments
 (0)