aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-03-16 13:34:19 +0000
committerLaurenČ›iu Nicola <[email protected]>2021-03-16 13:34:19 +0000
commita7cf976c6324433b3f99d5b73d900150e17f1529 (patch)
treea6ba76ec122b357ff281bd7e219559eb260396ae /crates/ide_completion
parent152f385055510c65bd94238878be23a258f5cc19 (diff)
Fix more unused wariable warnings
Diffstat (limited to 'crates/ide_completion')
-rw-r--r--crates/ide_completion/src/context.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs
index e6cc6329c..5a081de7e 100644
--- a/crates/ide_completion/src/context.rs
+++ b/crates/ide_completion/src/context.rs
@@ -310,7 +310,7 @@ impl<'a> CompletionContext<'a> {
310 310
311 (ty, name) 311 (ty, name)
312 }, 312 },
313 ast::ArgList(it) => { 313 ast::ArgList(_it) => {
314 cov_mark::hit!(expected_type_fn_param_with_leading_char); 314 cov_mark::hit!(expected_type_fn_param_with_leading_char);
315 cov_mark::hit!(expected_type_fn_param_without_leading_char); 315 cov_mark::hit!(expected_type_fn_param_without_leading_char);
316 ActiveParameter::at_token( 316 ActiveParameter::at_token(
@@ -319,7 +319,7 @@ impl<'a> CompletionContext<'a> {
319 ).map(|ap| (Some(ap.ty), Some(ap.name))) 319 ).map(|ap| (Some(ap.ty), Some(ap.name)))
320 .unwrap_or((None, None)) 320 .unwrap_or((None, None))
321 }, 321 },
322 ast::RecordExprFieldList(it) => { 322 ast::RecordExprFieldList(_it) => {
323 cov_mark::hit!(expected_type_struct_field_without_leading_char); 323 cov_mark::hit!(expected_type_struct_field_without_leading_char);
324 self.token.prev_sibling_or_token() 324 self.token.prev_sibling_or_token()
325 .and_then(|se| se.into_node()) 325 .and_then(|se| se.into_node())
@@ -355,7 +355,7 @@ impl<'a> CompletionContext<'a> {
355 355
356 (ty, None) 356 (ty, None)
357 }, 357 },
358 ast::Fn(it) => { 358 ast::Fn(_it) => {
359 cov_mark::hit!(expected_type_fn_ret_with_leading_char); 359 cov_mark::hit!(expected_type_fn_ret_with_leading_char);
360 cov_mark::hit!(expected_type_fn_ret_without_leading_char); 360 cov_mark::hit!(expected_type_fn_ret_without_leading_char);
361 let ty = self.token.ancestors() 361 let ty = self.token.ancestors()