mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 17:07:26 +00:00
fix token method call
This commit is contained in:
parent
132d5ffc7d
commit
e86d451484
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ pub(crate) fn hover(
|
|||
return None;
|
||||
}
|
||||
|
||||
let rest_pat = token.syntax().parent().and_then(ast::RestPat::cast)?;
|
||||
let rest_pat = token.parent().and_then(ast::RestPat::cast)?;
|
||||
let record_pat_field_list = rest_pat.syntax().parent().and_then(ast::RecordPatFieldList::cast)?;
|
||||
|
||||
let record_pat =
|
||||
|
|
Loading…
Reference in a new issue