aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/expr
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/expr')
-rw-r--r--crates/ra_hir/src/expr/validation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/expr/validation.rs b/crates/ra_hir/src/expr/validation.rs
index 0248b087d..592f558f2 100644
--- a/crates/ra_hir/src/expr/validation.rs
+++ b/crates/ra_hir/src/expr/validation.rs
@@ -57,7 +57,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
57 _ => return, 57 _ => return,
58 }; 58 };
59 59
60 let lit_fields: FxHashSet<_> = fields.into_iter().map(|f| &f.name).collect(); 60 let lit_fields: FxHashSet<_> = fields.iter().map(|f| &f.name).collect();
61 let missed_fields: Vec<Name> = struct_def 61 let missed_fields: Vec<Name> = struct_def
62 .fields(db) 62 .fields(db)
63 .iter() 63 .iter()