fix token method call

This commit is contained in:
Kartavya Vashishtha 2022-11-25 12:20:34 +05:30
parent 132d5ffc7d
commit e86d451484
No known key found for this signature in database
GPG key ID: A50012C2324E5DF0

View file

@ -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 =