diff options
Diffstat (limited to 'crates/ra_analysis/src/completion/complete_snippet.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/complete_snippet.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/completion/complete_snippet.rs b/crates/ra_analysis/src/completion/complete_snippet.rs index 5d6cc5dc9..6816ae695 100644 --- a/crates/ra_analysis/src/completion/complete_snippet.rs +++ b/crates/ra_analysis/src/completion/complete_snippet.rs | |||
@@ -1,8 +1,8 @@ | |||
1 | use crate::{ | 1 | use crate::{ |
2 | completion::{CompletionItem, Completions, CompletionKind::*, SyntaxContext}, | 2 | completion::{CompletionItem, Completions, CompletionKind::*, CompletionContext}, |
3 | }; | 3 | }; |
4 | 4 | ||
5 | pub(super) fn complete_expr_snippet(acc: &mut Completions, ctx: &SyntaxContext) { | 5 | pub(super) fn complete_expr_snippet(acc: &mut Completions, ctx: &CompletionContext) { |
6 | if !(ctx.is_trivial_path && ctx.enclosing_fn.is_some()) { | 6 | if !(ctx.is_trivial_path && ctx.enclosing_fn.is_some()) { |
7 | return; | 7 | return; |
8 | } | 8 | } |
@@ -16,7 +16,7 @@ pub(super) fn complete_expr_snippet(acc: &mut Completions, ctx: &SyntaxContext) | |||
16 | .add_to(acc); | 16 | .add_to(acc); |
17 | } | 17 | } |
18 | 18 | ||
19 | pub(super) fn complete_item_snippet(acc: &mut Completions, ctx: &SyntaxContext) { | 19 | pub(super) fn complete_item_snippet(acc: &mut Completions, ctx: &CompletionContext) { |
20 | if !ctx.is_new_item { | 20 | if !ctx.is_new_item { |
21 | return; | 21 | return; |
22 | } | 22 | } |