fix: remove (redundant) semicolon in lint suggestion

This commit is contained in:
Nadir Fejzic 2022-11-08 15:04:32 +01:00
parent 62ab4fb9c2
commit 862ac29192
3 changed files with 9 additions and 9 deletions

View file

@ -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,
);
}