about summary refs log tree commit diff
path: root/clippy_lints
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints')
-rw-r--r--clippy_lints/src/instant_subtraction.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/instant_subtraction.rs b/clippy_lints/src/instant_subtraction.rs
index c039f1b5c6a..d83beb622cf 100644
--- a/clippy_lints/src/instant_subtraction.rs
+++ b/clippy_lints/src/instant_subtraction.rs
@@ -174,7 +174,7 @@ fn print_unchecked_duration_subtraction_sugg(
         expr.span,
         "unchecked subtraction of a 'Duration' from an 'Instant'",
         "try",
-        format!("{left_expr}.checked_sub({right_expr}).unwrap();"),
+        format!("{left_expr}.checked_sub({right_expr}).unwrap()"),
         applicability,
     );
 }