Skip to content

Commit 1dce707

Browse files
isPANNclaude
andcommitted
Fix clippy identity_op in closestsubstring_ilp test (#1035)
Replace `6 + 0` and `6 + 6 + 0` with `6` and `6 + 6`. Surfaced during structural review of #363 commit (the lint blocks `cargo clippy --all-targets -- -D warnings`). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent d1da221 commit 1dce707

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/unit_tests/rules/closestsubstring_ilp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ fn test_closestsubstring_to_ilp_extract_known_solution() {
152152

153153
// y_{i, p} live at indices q*ell + window_offsets[i] + p. With q*ell = 6
154154
// and W_i = 3 for each string, the y-block starts at 6.
155-
target_solution[6 + 0] = 1; // y_{1, 0}
155+
target_solution[6] = 1; // y_{1, 0}
156156
target_solution[6 + 3 + 1] = 1; // y_{2, 1}
157-
target_solution[6 + 6 + 0] = 1; // y_{3, 0}
157+
target_solution[6 + 6] = 1; // y_{3, 0}
158158
target_solution[ilp.num_vars - 1] = 1; // R = 1
159159

160160
let extracted = reduction.extract_solution(&target_solution);

0 commit comments

Comments
 (0)