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,
|
expr.span,
|
||||||
"unchecked subtraction of a 'Duration' from an 'Instant'",
|
"unchecked subtraction of a 'Duration' from an 'Instant'",
|
||||||
"try",
|
"try",
|
||||||
format!("{}.checked_sub({}).unwrap();", left_expr, right_expr),
|
format!("{left_expr}.checked_sub({right_expr}).unwrap();"),
|
||||||
applicability,
|
applicability,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user