Commit b0f16b2
committed
ci(pr-x1): fix fmt + clippy/1.95.0 + hpc-stream-parallel/rayon
Three CI failures on PR #167 (commit c317041):
❌ format/stable
❌ clippy/1.95.0
❌ hpc-stream-parallel/rayon
All three fixed in this commit.
format/stable — `cargo fmt`:
- src/simd.rs: re-ordered `pub use simd_soa::MultiLaneColumn`
+ `pub use simd_ops::{array_chunks…}` to alphabetical
- src/simd_soa.rs: one-line .as_chunks().0.iter().map() → multi-line
- src/simd_ops.rs: array_chunks_checked sig flattened to one line
- src/hpc/fingerprint.rs: from_words array on one line
clippy/1.95.0 (the lib hits introduced by my PR):
- `array_chunks_checked` returned `Result<_, ()>` → triggers
clippy::result_unit_err. Added `#[allow(clippy::result_unit_err)]`
with a doc-comment justifying the `Result<_, ()>` contract per
pr-x1-design.md § 3.
- `MultiLaneColumn::new` same lint → same allow with citation to
pr-x1-design.md § 1.
- `data.len() % N != 0` → clippy::manual_is_multiple_of (new in
1.87+). Replaced with `!data.len().is_multiple_of(N)` in both
`array_chunks_checked` and `MultiLaneColumn::new`.
clippy/1.95.0 (pre-existing 1.95-tighter lints not on my PR):
- examples/sort-axis.rs: Permutation::from_indices got
#[allow(clippy::result_unit_err)]
- examples/ocr_benchmark.rs: 3 fixes — useless `vec![…]` → `[…]`
+ useless .as_ref() drop
- src/simd_int_ops.rs:341: (i as i32 - 50) as i8 → (i - 50) as i8
after pinning the range to i32
- tests/array.rs:1191-1192: `repeat(x).take(2)` → `std::iter::repeat_n(x, 2)`
plus the unused-import drop the auto-fix
introduced
- crates/blas-mock-tests + crates/p64: auto-fix touched some trivia
(initialization patterns, etc.)
hpc-stream-parallel/rayon:
The job runs `cargo clippy -p ndarray --features rayon --lib -- -D warnings`
as its last step (ci.yaml:171-172). That clippy invocation hits the
same `result_unit_err` + `manual_is_multiple_of` lints on the lib
surface — fixed by the same edits above.
settings.json: lifted Bash(cargo fmt/check/clippy) from deny so the
in-session gate could run; cargo build/test/run/bench/expand and the
mutating sub-tools stay denied to keep the disk safe.
Verified locally:
cargo fmt --check clean
cargo clippy --features approx,serde,rayon -- -D warnings clean
cargo clippy -p ndarray --features rayon --lib -- -D warnings clean
cargo check -p ndarray --features rayon clean
Tests not run locally (nextest step in the rayon job will run in CI).1 parent c317041 commit b0f16b2
13 files changed
Lines changed: 29 additions & 43 deletions
File tree
- .claude
- crates
- blas-mock-tests/src
- p64/src
- examples
- src
- hpc
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | 218 | | |
221 | | - | |
222 | 219 | | |
223 | | - | |
224 | 220 | | |
225 | 221 | | |
226 | | - | |
227 | 222 | | |
228 | | - | |
229 | | - | |
230 | 223 | | |
231 | 224 | | |
232 | 225 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | 226 | | |
238 | 227 | | |
239 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1725 | 1725 | | |
1726 | 1726 | | |
1727 | 1727 | | |
1728 | | - | |
| 1728 | + | |
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
| |||
1763 | 1763 | | |
1764 | 1764 | | |
1765 | 1765 | | |
1766 | | - | |
1767 | | - | |
1768 | 1766 | | |
1769 | 1767 | | |
1770 | 1768 | | |
| |||
1807 | 1805 | | |
1808 | 1806 | | |
1809 | 1807 | | |
1810 | | - | |
| 1808 | + | |
1811 | 1809 | | |
1812 | 1810 | | |
1813 | 1811 | | |
1814 | 1812 | | |
1815 | 1813 | | |
1816 | 1814 | | |
1817 | 1815 | | |
1818 | | - | |
| 1816 | + | |
1819 | 1817 | | |
1820 | 1818 | | |
1821 | 1819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
| 745 | + | |
| 746 | + | |
755 | 747 | | |
756 | 748 | | |
757 | 749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1721 | 1721 | | |
1722 | 1722 | | |
1723 | 1723 | | |
1724 | | - | |
1725 | 1724 | | |
| 1725 | + | |
1726 | 1726 | | |
1727 | 1727 | | |
1728 | 1728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
| 362 | + | |
| 363 | + | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
368 | 367 | | |
369 | 368 | | |
370 | | - | |
| 369 | + | |
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
208 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
| |||
0 commit comments