Repository navigation
Commit 36abeb7
feat: enable clippy::lossy_float_literal
Catches float literals that silently round, e.g. `let x: f32 = 0.1234567890123;`.
The three existing hits are false positives: they spell out exact powers
of two (2^64 and 2^64-2^41), which float `Display` renders with fewer
digits, so the lint thinks precision was lost.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>1 parent d82dc41 commit 36abeb7
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9628 | 9628 | | |
9629 | 9629 | | |
9630 | 9630 | | |
| 9631 | + | |
| 9632 | + | |
| 9633 | + | |
| 9634 | + | |
9631 | 9635 | | |
9632 | 9636 | | |
9633 | 9637 | | |
| |||
0 commit comments