diff options
Diffstat (limited to 'crates/ra_hir/src/expr')
-rw-r--r-- | crates/ra_hir/src/expr/validation.rs | 2 |
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 fd4907313..aebed6788 100644 --- a/crates/ra_hir/src/expr/validation.rs +++ b/crates/ra_hir/src/expr/validation.rs | |||
@@ -76,7 +76,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> { | |||
76 | let source_file = db.parse(file_id.original_file(db)); | 76 | let source_file = db.parse(file_id.original_file(db)); |
77 | if let Some(field_list_node) = source_map | 77 | if let Some(field_list_node) = source_map |
78 | .expr_syntax(id) | 78 | .expr_syntax(id) |
79 | .map(|ptr| ptr.to_node(&source_file)) | 79 | .map(|ptr| ptr.to_node(source_file.syntax())) |
80 | .and_then(StructLit::cast) | 80 | .and_then(StructLit::cast) |
81 | .and_then(|lit| lit.named_field_list()) | 81 | .and_then(|lit| lit.named_field_list()) |
82 | { | 82 | { |