mirror of
https://github.com/hanzoai/ml.git
synced 2026-11-19 23:50:51 +00:00
`cargo clippy --workspace --tests --examples --benches -- -D warnings` is what CI runs, and it stopped at the first crate every time, so the lints behind that one had never been seen. - metric.rs asked `!(cost >= 0.0)` to catch NaN as well as a negative cost. The is_finite check beside it already catches NaN, so the negation bought nothing and read as though it did; `cost < 0.0` says what is meant. - sklearn.rs wrapped `reals` in a closure that only called it. - refusal.rs took `.err().expect(..)` where `expect_err` reads the same. Four of the five convert; ModelWrapper is not Debug, so its Ok side cannot be printed and that one keeps the pair, with a line saying why. - neon.rs returned early from the last expression of its dotprod arm. Checked with the feature on and off, since only one arm compiles at a time. Co-authored-by: Hanzo Dev <[email protected]>