Commit d0fd301
chore(clippy): adopt as_chunks, unbreaking CI on the current toolchain
CI runs 'cargo clippy --all-targets -- -D warnings' on the latest stable. A
newer clippy added chunks_exact_to_as_chunks, so master and every PR opened
against it now fail the Check job on code nobody touched. Master last went
green on 2026-08-11.
Five sites, all with a CONSTANT chunk size: sparse_reader (8 and 4),
redis_utils ft_info_num_docs / ft_info_index_memory_bytes (2), and the kividb
integration helper (2).
The sparse_reader change is a small real improvement rather than lint
appeasement: as_chunks::<N>() yields &[u8; N] directly, so the fallible
try_into().unwrap() that chunks_exact forced is gone -- the length is proven by
the type instead of re-checked at runtime.
Verified with beta clippy (0.1.98, matching what CI resolves) clean at
-D warnings, and built + unit-tested on stable 0.1.97 so this does not require
a toolchain bump.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 0295901 commit d0fd301
3 files changed
Lines changed: 20 additions & 9 deletions
File tree
- src
- bin/vector_db_benchmark/engine
- readers
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
| |||
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
458 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
459 | 463 | | |
460 | 464 | | |
461 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | | - | |
45 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
1229 | | - | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1230 | 1235 | | |
1231 | 1236 | | |
1232 | 1237 | | |
| |||
0 commit comments