From 514400f6fc66bbd9a837ba494cb6b91ca50f4e91 Mon Sep 17 00:00:00 2001 From: Alex Yusiuk <55661041+RRRadicalEdward@users.noreply.github.com> Date: Thu, 21 Aug 2025 11:18:41 +0300 Subject: [PATCH] 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. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 0a68bf8f..78ae2539 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" # Let’s either handle `None`, `Err` or use `expect` to give a reason. large_stack_frames = "warn"