Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e86d451

Browse files
committed
fix token method call
1 parent 132d5ff commit e86d451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide/src/hover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub(crate) fn hover(
176176
return None;
177177
}
178178

179-
let rest_pat = token.syntax().parent().and_then(ast::RestPat::cast)?;
179+
let rest_pat = token.parent().and_then(ast::RestPat::cast)?;
180180
let record_pat_field_list = rest_pat.syntax().parent().and_then(ast::RecordPatFieldList::cast)?;
181181

182182
let record_pat =

0 commit comments

Comments
 (0)