diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide_completion/src/context.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index 8cbbdb477..6d57da06a 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs | |||
@@ -313,7 +313,7 @@ impl<'a> CompletionContext<'a> { | |||
313 | 313 | ||
314 | (ty, name) | 314 | (ty, name) |
315 | }, | 315 | }, |
316 | ast::ArgList(it) => { | 316 | ast::ArgList(_it) => { |
317 | cov_mark::hit!(expected_type_fn_param_with_leading_char); | 317 | cov_mark::hit!(expected_type_fn_param_with_leading_char); |
318 | cov_mark::hit!(expected_type_fn_param_without_leading_char); | 318 | cov_mark::hit!(expected_type_fn_param_without_leading_char); |
319 | ActiveParameter::at_token( | 319 | ActiveParameter::at_token( |
@@ -322,7 +322,7 @@ impl<'a> CompletionContext<'a> { | |||
322 | ).map(|ap| (Some(ap.ty), Some(ap.name))) | 322 | ).map(|ap| (Some(ap.ty), Some(ap.name))) |
323 | .unwrap_or((None, None)) | 323 | .unwrap_or((None, None)) |
324 | }, | 324 | }, |
325 | ast::RecordExprFieldList(it) => { | 325 | ast::RecordExprFieldList(_it) => { |
326 | cov_mark::hit!(expected_type_struct_field_without_leading_char); | 326 | cov_mark::hit!(expected_type_struct_field_without_leading_char); |
327 | self.token.prev_sibling_or_token() | 327 | self.token.prev_sibling_or_token() |
328 | .and_then(|se| se.into_node()) | 328 | .and_then(|se| se.into_node()) |
@@ -358,7 +358,7 @@ impl<'a> CompletionContext<'a> { | |||
358 | 358 | ||
359 | (ty, None) | 359 | (ty, None) |
360 | }, | 360 | }, |
361 | ast::Fn(it) => { | 361 | ast::Fn(_it) => { |
362 | cov_mark::hit!(expected_type_fn_ret_with_leading_char); | 362 | cov_mark::hit!(expected_type_fn_ret_with_leading_char); |
363 | cov_mark::hit!(expected_type_fn_ret_without_leading_char); | 363 | cov_mark::hit!(expected_type_fn_ret_without_leading_char); |
364 | let ty = self.token.ancestors() | 364 | let ty = self.token.ancestors() |