Skip to content

Commit 5698e51

Browse files
committed
tidy formatting
1 parent 49dac40 commit 5698e51

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/ide/src/hover.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,8 @@ fn hover_type_fallback(
232232
token: &SyntaxToken,
233233
original_token: &SyntaxToken,
234234
) -> Option<RangeInfo<HoverResult>> {
235-
let node = token
236-
.parent_ancestors()
237-
.take_while(|it| !ast::Item::can_cast(it.kind()))
238-
.find(|n| {
235+
let node =
236+
token.parent_ancestors().take_while(|it| !ast::Item::can_cast(it.kind())).find(|n| {
239237
ast::Expr::can_cast(n.kind())
240238
|| ast::Pat::can_cast(n.kind())
241239
|| ast::Type::can_cast(n.kind())

0 commit comments

Comments
 (0)