Skip to content

Commit ba19b21

Browse files
committed
Apply uninlined_format_args to Clippy itself
1 parent b2b462c commit ba19b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/implicit_saturating_sub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ fn print_lint_and_sugg(cx: &LateContext<'_>, var_name: Symbol, expr: &Expr<'_>)
388388
expr.span,
389389
"implicitly performing saturating subtraction",
390390
"try",
391-
format!("{var_name} = {var_name}.saturating_sub({});", '1'),
391+
format!("{var_name} = {var_name}.saturating_sub(1);"),
392392
Applicability::MachineApplicable,
393393
);
394394
}

0 commit comments

Comments
 (0)