Skip to content

Commit 18b6ad3

Browse files
authored
Rollup merge of rust-lang#96248 - TaKO8Ki:remove-unnecessary-format-args, r=compiler-errors
Stop using a string literal as a format argument
2 parents e50105e + 5078b05 commit 18b6ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
14841484
err.span_suggestion_hidden(
14851485
return_span,
14861486
"use `.collect()` to allocate the iterator",
1487-
format!("{}{}", snippet, ".collect::<Vec<_>>()"),
1487+
format!("{snippet}.collect::<Vec<_>>()"),
14881488
Applicability::MaybeIncorrect,
14891489
);
14901490
}

0 commit comments

Comments
 (0)