From 03b2ab8e1f11f0e05234da9162ef57f7a30a64af Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 2 Mar 2019 16:56:09 +0300 Subject: rename syntax_mapping as well --- crates/ra_ide_api/src/completion/complete_struct_literal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api/src/completion/complete_struct_literal.rs') diff --git a/crates/ra_ide_api/src/completion/complete_struct_literal.rs b/crates/ra_ide_api/src/completion/complete_struct_literal.rs index 573953bda..6bef9624e 100644 --- a/crates/ra_ide_api/src/completion/complete_struct_literal.rs +++ b/crates/ra_ide_api/src/completion/complete_struct_literal.rs @@ -9,8 +9,8 @@ pub(super) fn complete_struct_literal(acc: &mut Completions, ctx: &CompletionCon _ => return, }; let infer_result = function.infer(ctx.db); - let syntax_mapping = function.body_source_map(ctx.db); - let expr = match syntax_mapping.node_expr(struct_lit.into()) { + let source_map = function.body_source_map(ctx.db); + let expr = match source_map.node_expr(struct_lit.into()) { Some(expr) => expr, None => return, }; -- cgit v1.2.3