chore: add lossy_float_literal clippy correctness lint (#926)

This lint checks the float literals that cannot be represented as the
underlying type without loss.
This commit is contained in:
Alex Yusiuk
2025-08-21 04:18:41 -04:00
committed by GitHub
parent 6fab9f8228
commit 514400f6fc
+1
View File
@@ -98,6 +98,7 @@ cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_sign_loss = "warn"
float_cmp = "warn"
lossy_float_literal = "warn"
as_underscore = "warn"
# TODO: unwrap_used = "warn" # Lets either handle `None`, `Err` or use `expect` to give a reason.
large_stack_frames = "warn"