Skip to content

Commit 5078b05

Browse files
committed
remove an unnecessary format arg
1 parent 27af517 commit 5078b05

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)