]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/floating_point_arithmetic.rs
Auto merge of #97121 - pvdrz:do-subdiagnostics-later, r=davidtwco
[rust.git] / src / tools / clippy / clippy_lints / src / floating_point_arithmetic.rs
index 79ce53f7a5f23f2cd3f3f0f64f36541b28bb453b..42503c26de1d1dcb1112fd1cf3a888a0acbec037 100644 (file)
@@ -215,7 +215,7 @@ fn check_ln1p(cx: &LateContext<'_>, expr: &Expr<'_>, args: &[Expr<'_>]) {
 // converted to an integer without loss of precision. For now we only check
 // ranges [-16777215, 16777216) for type f32 as whole number floats outside
 // this range are lossy and ambiguous.
-#[allow(clippy::cast_possible_truncation)]
+#[expect(clippy::cast_possible_truncation)]
 fn get_integer_from_float_constant(value: &Constant) -> Option<i32> {
     match value {
         F32(num) if num.fract() == 0.0 => {