tidy formatting
This commit is contained in:
parent
49dac4070c
commit
5698e51027
@ -232,10 +232,8 @@ fn hover_type_fallback(
|
|||||||
token: &SyntaxToken,
|
token: &SyntaxToken,
|
||||||
original_token: &SyntaxToken,
|
original_token: &SyntaxToken,
|
||||||
) -> Option<RangeInfo<HoverResult>> {
|
) -> Option<RangeInfo<HoverResult>> {
|
||||||
let node = token
|
let node =
|
||||||
.parent_ancestors()
|
token.parent_ancestors().take_while(|it| !ast::Item::can_cast(it.kind())).find(|n| {
|
||||||
.take_while(|it| !ast::Item::can_cast(it.kind()))
|
|
||||||
.find(|n| {
|
|
||||||
ast::Expr::can_cast(n.kind())
|
ast::Expr::can_cast(n.kind())
|
||||||
|| ast::Pat::can_cast(n.kind())
|
|| ast::Pat::can_cast(n.kind())
|
||||||
|| ast::Type::can_cast(n.kind())
|
|| ast::Type::can_cast(n.kind())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user