Make span_suggestions take IntoIterator

This commit is contained in:
Michael Goulet 2022-10-07 02:05:57 +00:00
parent fbce7decd8
commit e807cb3c41
6 changed files with 11 additions and 11 deletions

View file

@ -401,7 +401,7 @@ impl<'a> Parser<'a> {
.span_suggestions(
span.shrink_to_hi(),
"add `mut` or `const` here",
["mut ".to_string(), "const ".to_string()].into_iter(),
["mut ".to_string(), "const ".to_string()],
Applicability::HasPlaceholders,
)
.emit();