aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-16 13:35:26 +0000
committerGitHub <[email protected]>2021-03-16 13:35:26 +0000
commitda5328a01be27a73378f4c4bac161e8fd43781e3 (patch)
tree37068f97a0d19e6c6e496d3f16385b8933f31b48
parentc49b5b7468a9954af86fd1724276261f396aba5d (diff)
parenta7cf976c6324433b3f99d5b73d900150e17f1529 (diff)
Merge #8051
8051: Fix more unused wariable warnings r=lnicola a=lnicola bors r+ changelog skip Co-authored-by: LaurenČ›iu Nicola <[email protected]>
-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 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()