From a7cf976c6324433b3f99d5b73d900150e17f1529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Tue, 16 Mar 2021 15:34:19 +0200 Subject: Fix more unused wariable warnings --- crates/ide_completion/src/context.rs | 6 +++--- 1 file 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> { (ty, name) }, - ast::ArgList(it) => { + ast::ArgList(_it) => { cov_mark::hit!(expected_type_fn_param_with_leading_char); cov_mark::hit!(expected_type_fn_param_without_leading_char); ActiveParameter::at_token( @@ -319,7 +319,7 @@ impl<'a> CompletionContext<'a> { ).map(|ap| (Some(ap.ty), Some(ap.name))) .unwrap_or((None, None)) }, - ast::RecordExprFieldList(it) => { + ast::RecordExprFieldList(_it) => { cov_mark::hit!(expected_type_struct_field_without_leading_char); self.token.prev_sibling_or_token() .and_then(|se| se.into_node()) @@ -355,7 +355,7 @@ impl<'a> CompletionContext<'a> { (ty, None) }, - ast::Fn(it) => { + ast::Fn(_it) => { cov_mark::hit!(expected_type_fn_ret_with_leading_char); cov_mark::hit!(expected_type_fn_ret_without_leading_char); let ty = self.token.ancestors() -- cgit v1.2.3