Commit 6ec758c
fix(kpm): silence clippy::excessive_precision on SMOOTH_KERNEL
CI clippy run flagged the 15-digit f32 literals in SMOOTH_KERNEL with
clippy::excessive_precision, suggesting truncation to ~8 digits. We
deliberately keep the full 15-digit C++ form for source-level fidelity
with the port (so a reviewer can compare digit-for-digit against the
C++ source without doing the rounding mentally).
The literal parser handles trailing digits identically to clipping them
in f32, so this is purely about source readability — no behavioral
change.
Add a localized #[allow(clippy::excessive_precision)] on the const with
a comment documenting the rationale.
refs #125 #128
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 5d0c765 commit 6ec758c
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
62 | 71 | | |
63 | 72 | | |
64 | 73 | | |
| |||
0 commit comments