]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/casts/cast_sign_loss.rs
Rollup merge of #102323 - Stoozy:master, r=cjgillot
[rust.git] / src / tools / clippy / clippy_lints / src / casts / cast_sign_loss.rs
index 5b59350be042c9ee173a398e36c403a81c86e01a..a20a97d4e56daccaaf0d739537c240216d2fd545 100644 (file)
@@ -14,10 +14,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_op: &Expr<'_>, c
             cx,
             CAST_SIGN_LOSS,
             expr.span,
-            &format!(
-                "casting `{}` to `{}` may lose the sign of the value",
-                cast_from, cast_to
-            ),
+            &format!("casting `{cast_from}` to `{cast_to}` may lose the sign of the value"),
         );
     }
 }