mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 07:30:57 +00:00
style: inline variables in format!
This commit is contained in:
parent
4bd6d0beb0
commit
852d802451
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue