Repository navigation
fix: satisfy clippy lints added in Rust 1.99 - #302
Conversation
Rust 1.99's clippy fails CI Lint on main and every open PR: - assert_is_empty: rewrite emptiness asserts as assert_eq! against an empty value so failures show the actual contents. Clippy's suggested `[] as [T; 0]` trips the workspace as_conversions lint, so compare to Vec::<T>::new() instead. - approx_constant: the 4-bit TurboQuant table holds Lloyd-Max Gaussian centroids; +-1.6180 only coincides with the golden ratio, so allow it. - suboptimal_flops: use mul_add in the YaRN frequency blend and TUI duration formatting. - match_same_arms tail: cmd_stop returns 0 once after the match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor License AgreementAll contributors are covered by a CLA. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
CI moved to Rust 1.99, whose clippy fails the Lint job on main and on every open PR (#290, #291, #296, #300, #301).
assert_is_empty(26 test asserts):assert_eq!against an empty value. Clippy's suggested[] as [T; 0]trips the workspaceas_conversionslint, so these compare toVec::<T>::new().approx_constant:FOUR_BIT_CENTROIDSare Lloyd-Max Gaussian centroids; the +-1.6180 entry only coincides with the golden ratio, so it is allowed with a comment.suboptimal_flops:mul_addin the YaRN frequency blend (DeepSeek-V2, yarn.rs) and the TUI duration formatter. Fused multiply-add, so results can differ in the last bit only.cmd_stopreturns0once after the match instead of in every arm.Validation (Rust 1.99.1)
cargo clippy --all-targets --all-features: cleancargo fmt --all -- --check: cleancargo test -p higgs -p higgs-engine -p higgs-models -- --test-threads=1: 1384 passed, 0 failed🤖 Generated with Claude Code
Summary by CodeRabbit