We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49dac40 commit 5698e51Copy full SHA for 5698e51
crates/ide/src/hover.rs
@@ -232,10 +232,8 @@ fn hover_type_fallback(
232
token: &SyntaxToken,
233
original_token: &SyntaxToken,
234
) -> Option<RangeInfo<HoverResult>> {
235
- let node = token
236
- .parent_ancestors()
237
- .take_while(|it| !ast::Item::can_cast(it.kind()))
238
- .find(|n| {
+ let node =
+ token.parent_ancestors().take_while(|it| !ast::Item::can_cast(it.kind())).find(|n| {
239
ast::Expr::can_cast(n.kind())
240
|| ast::Pat::can_cast(n.kind())
241
|| ast::Type::can_cast(n.kind())
0 commit comments