From 863b1fb731e797f02daeac87a94d40a34222a062 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 21 Aug 2020 19:12:38 +0200 Subject: :arrow_up: ungrammar --- crates/assists/src/handlers/auto_import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/assists/src/handlers/auto_import.rs') diff --git a/crates/assists/src/handlers/auto_import.rs b/crates/assists/src/handlers/auto_import.rs index b9ec3f10b..c4770f336 100644 --- a/crates/assists/src/handlers/auto_import.rs +++ b/crates/assists/src/handlers/auto_import.rs @@ -239,7 +239,7 @@ impl ImportCandidate { return None; } Some(Self::TraitMethod( - sema.type_of_expr(&method_call.expr()?)?, + sema.type_of_expr(&method_call.receiver()?)?, method_call.name_ref()?.syntax().to_string(), )) } -- cgit v1.2.3