Skip to content

Commit e5d85f1

Browse files
committed
style: inline variables in format!
1 parent 89f3e76 commit e5d85f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/instant_subtraction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ fn print_unchecked_duration_subtraction_sugg(
174174
expr.span,
175175
"unchecked subtraction of a 'Duration' from an 'Instant'",
176176
"try",
177-
format!("{}.checked_sub({}).unwrap();", left_expr, right_expr),
177+
format!("{left_expr}.checked_sub({right_expr}).unwrap();"),
178178
applicability,
179179
);
180180
}

0 commit comments

Comments
 (0)