mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Fix more unused wariable warnings
This commit is contained in:
parent
152f385055
commit
a7cf976c63
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue