]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/unused_rounding.rs
Rollup merge of #103443 - mucinoab:recover-colon-as-path-separetor, r=compiler-errors
[rust.git] / src / tools / clippy / clippy_lints / src / unused_rounding.rs
index b8a5d4ea8c9fbe177429781c403313046f752194..3164937293b6893e7e1ecaca177505494b3623d1 100644 (file)
@@ -58,8 +58,8 @@ fn check_expr(&mut self, cx: &EarlyContext<'_>, expr: &Expr) {
                 cx,
                 UNUSED_ROUNDING,
                 expr.span,
-                &format!("used the `{}` method with a whole number float", method_name),
-                &format!("remove the `{}` method call", method_name),
+                &format!("used the `{method_name}` method with a whole number float"),
+                &format!("remove the `{method_name}` method call"),
                 float,
                 Applicability::MachineApplicable,
             );