about summary refs log tree commit diff
path: root/clippy_lints/src/zero_div_zero.rs
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2022-09-28 14:27:32 +0200
committerPhilipp Krones <hello@philkrones.com>2022-09-28 14:27:32 +0200
commitbbcde666853d11f6f5f3bdc660f018cf7fc8cd71 (patch)
tree28df6eeea41c8e772bb65a172962f74282db1de1 /clippy_lints/src/zero_div_zero.rs
parente5ce6d18df883f593e72f7958bebdc3ebcdbe85e (diff)
parent0f6932a1f7623663e50922225ea304340949c051 (diff)
downloadrust-bbcde666853d11f6f5f3bdc660f018cf7fc8cd71.tar.gz
rust-bbcde666853d11f6f5f3bdc660f018cf7fc8cd71.zip
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'clippy_lints/src/zero_div_zero.rs')
-rw-r--r--clippy_lints/src/zero_div_zero.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_lints/src/zero_div_zero.rs b/clippy_lints/src/zero_div_zero.rs
index 50d3c079fe6..9b3de35dbd3 100644
--- a/clippy_lints/src/zero_div_zero.rs
+++ b/clippy_lints/src/zero_div_zero.rs
@@ -57,8 +57,7 @@ impl<'tcx> LateLintPass<'tcx> for ZeroDiv {
                     "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",
                     ),
                 );
             }