diff options
Diffstat (limited to 'crates/ra_analysis/src/completion/complete_fn_param.rs')
-rw-r--r-- | crates/ra_analysis/src/completion/complete_fn_param.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/completion/complete_fn_param.rs b/crates/ra_analysis/src/completion/complete_fn_param.rs index d05a5e3cf..3ec507fdf 100644 --- a/crates/ra_analysis/src/completion/complete_fn_param.rs +++ b/crates/ra_analysis/src/completion/complete_fn_param.rs | |||
@@ -8,14 +8,14 @@ use ra_syntax::{ | |||
8 | use rustc_hash::{FxHashMap}; | 8 | use rustc_hash::{FxHashMap}; |
9 | 9 | ||
10 | use crate::{ | 10 | use crate::{ |
11 | completion::{SyntaxContext, Completions, CompletionKind, CompletionItem}, | 11 | completion::{CompletionContext, Completions, CompletionKind, CompletionItem}, |
12 | }; | 12 | }; |
13 | 13 | ||
14 | /// Complete repeated parametes, both name and type. For example, if all | 14 | /// Complete repeated parametes, both name and type. For example, if all |
15 | /// functions in a file have a `spam: &mut Spam` parameter, a completion with | 15 | /// functions in a file have a `spam: &mut Spam` parameter, a completion with |
16 | /// `spam: &mut Spam` insert text/label and `spam` lookup string will be | 16 | /// `spam: &mut Spam` insert text/label and `spam` lookup string will be |
17 | /// suggested. | 17 | /// suggested. |
18 | pub(super) fn complete_fn_param(acc: &mut Completions, ctx: &SyntaxContext) { | 18 | pub(super) fn complete_fn_param(acc: &mut Completions, ctx: &CompletionContext) { |
19 | if !ctx.is_param { | 19 | if !ctx.is_param { |
20 | return; | 20 | return; |
21 | } | 21 | } |