Commit 31d7757
committed
fix(blasgraph): silence dead_code for scalar Hamming fallback under ndarray-hpc
After routing `hamming_distance_dispatch` through `ndarray::hpc::bitwise`, the
in-crate `hamming_distance_scalar` is reached only from the `not(ndarray-hpc)`
fallback and `#[cfg(test)]` parity tests — so a non-test build with the default
`ndarray-hpc` feature warns it's unused. `#[cfg_attr(feature = "ndarray-hpc",
allow(dead_code))]` keeps the lib build warning-free while leaving it live for
the fallback and tests.
https://claude.ai/code/session_01D2WSmezQBNC3bUdHuGfGmo1 parent e770a7c commit 31d7757
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
433 | 436 | | |
434 | 437 | | |
435 | 438 | | |
| |||
0 commit comments