On 32-bit, usize as f64 recommends f64::from(usize) #3689
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
L-suggestion
Lint: Improving, adding or fixing lint suggestions
On i686, the cast_lossless lint recommends using
f64::from(len)
instead oflen as f64
wherelen
is of typeusize
. This wouldchange the behaviour on x86_64fail to compile.The text was updated successfully, but these errors were encountered: