Fix clippy::into_iter_on_ref

This commit is contained in:
Alan Du 2019-06-04 02:28:50 -04:00
parent 619a615298
commit fb592d76aa
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
_ => return,
};
let lit_fields: FxHashSet<_> = fields.into_iter().map(|f| &f.name).collect();
let lit_fields: FxHashSet<_> = fields.iter().map(|f| &f.name).collect();
let missed_fields: Vec<Name> = struct_def
.fields(db)
.iter()