mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +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;
|
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_field_list = rest_pat.syntax().parent().and_then(ast::RecordPatFieldList::cast)?;
|
||||||
|
|
||||||
let record_pat =
|
let record_pat =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue