False positive in excessive_precision for floats that are already in shortest form #7721
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
Clippy's suggestion is the following diff:
It seems wrong to call this excessive precision when both representations have identical precision. Probably there is a reason that the one the human wrote is more meaningful in context and should be left as is.
Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: