Casting hexadecimal int literals to f32 is necessary #9603
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
Rust sadly doesn't support non-decimal floating point numbers.
Lint Name
clippy::unnecessary_cast
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
I expected it not to work anymore after following the hint, and that's what happened.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: