style: inline variables in format!
This commit is contained in:
parent
4bd6d0beb0
commit
852d802451
@ -174,7 +174,7 @@ fn print_unchecked_duration_subtraction_sugg(
|
||||
expr.span,
|
||||
"unchecked subtraction of a 'Duration' from an 'Instant'",
|
||||
"try",
|
||||
format!("{}.checked_sub({}).unwrap();", left_expr, right_expr),
|
||||
format!("{left_expr}.checked_sub({right_expr}).unwrap();"),
|
||||
applicability,
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user