"casting u32 to f64 may become silently lossy if types change" doesn't make sense #3964
Labels
A-documentation
Area: Adding or improving documentation
good-first-issue
These issues are a good way to get started with Clippy
I'm pretty sure this warning should be removed. Same with f32 to f64, s32 to f64 and so on. All integer types with sizes <= u32 are trivially covered by f64, due to the 53 bit mantissa, and f32 should be too, right?
To me, having to do f64::from() is a lot visually noisier than "as f64" and I see no benefit in warning for something that will never occur in practice. I don't see any scenario in which the definition of f64 would change...
The text was updated successfully, but these errors were encountered: