mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +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…
Add table
Add a link
Reference in a new issue