]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/zero_div_zero.rs
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
[rust.git] / src / tools / clippy / clippy_lints / src / zero_div_zero.rs
index 50d3c079fe6758c8ff8ff8dce2adeaed804fd6ac..9b3de35dbd3cded6bc3e2073f7b6d3aedff2cd56 100644 (file)
@@ -57,8 +57,7 @@ fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
                     "constant division of `0.0` with `0.0` will always result in NaN",
                     None,
                     &format!(
-                        "consider using `{}::NAN` if you would like a constant representing NaN",
-                        float_type,
+                        "consider using `{float_type}::NAN` if you would like a constant representing NaN",
                     ),
                 );
             }