From 6a16ec52aa0d91945577c99cdf421b303b59301e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 4 May 2021 14:10:49 +0300 Subject: internal: use API stabilized in 1.52 --- crates/ide_completion/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide_completion/src') diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index f3fcb712c..ae2900b5c 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs @@ -381,7 +381,7 @@ impl<'a> CompletionContext<'a> { let def = self.sema.to_def(&it); (def.map(|def| def.ret_type(self.db)), None) }, - ast::Stmt(it) => (None, None), + ast::Stmt(_) => (None, None), _ => { match node.parent() { Some(n) => { -- cgit v1.2.3 From 607d8a2f61e56fabb7a3bc5132592917fcdca970 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 6 May 2021 20:12:30 +0300 Subject: Small macro fix --- crates/ide_completion/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide_completion/src') diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index ae2900b5c..62ef40818 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs @@ -381,7 +381,7 @@ impl<'a> CompletionContext<'a> { let def = self.sema.to_def(&it); (def.map(|def| def.ret_type(self.db)), None) }, - ast::Stmt(_) => (None, None), + ast::Stmt(_it) => (None, None), _ => { match node.parent() { Some(n) => { -- cgit v1.2.3