1
Fork 0

NFC don't convert types to identical types

This commit is contained in:
Matthias Krüger 2023-12-15 23:56:24 +01:00
parent a96d57bdb6
commit 8479945c08
24 changed files with 35 additions and 50 deletions

View file

@ -923,7 +923,7 @@ impl<'a> Parser<'a> {
);
let where_predicates_split = before_where_clause.predicates.len();
let mut predicates = before_where_clause.predicates;
predicates.extend(after_where_clause.predicates.into_iter());
predicates.extend(after_where_clause.predicates);
let where_clause = WhereClause {
has_where_token: before_where_clause.has_where_token
|| after_where_clause.has_where_token,

View file

@ -215,7 +215,7 @@ fn emit_malformed_attribute(
} else {
"the following are the possible correct uses"
},
suggestions.into_iter(),
suggestions,
Applicability::HasPlaceholders,
)
.emit();