remove an unnecessary format arg

This commit is contained in:
Takayuki Maeda 2022-04-20 21:16:56 +09:00
parent 27af517549
commit 5078b053b5

View file

@ -1484,7 +1484,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
err.span_suggestion_hidden(
return_span,
"use `.collect()` to allocate the iterator",
format!("{}{}", snippet, ".collect::<Vec<_>>()"),
format!("{snippet}.collect::<Vec<_>>()"),
Applicability::MaybeIncorrect,
);
}