Skip to content

Commit 29951f9

Browse files
committed
fix formatting
1 parent 87658c8 commit 29951f9

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
@@ -127,7 +127,7 @@ pub(crate) fn hover(
127127
original_token.parent().and_then(ast::TokenTree::cast),
128128
Some(tt) if tt.syntax().ancestors().any(|it| ast::Meta::can_cast(it.kind()))
129129
);
130-
130+
131131
// prefer descending the same token kind in attribute expansions, in normal macros text
132132
// equivalency is more important
133133
let descended = if in_attr {
@@ -168,9 +168,7 @@ pub(crate) fn hover(
168168
})
169169
})
170170
// try keywords
171-
.or_else(|| {
172-
descended.iter().find_map(|token| render::keyword(sema, config, token))
173-
})
171+
.or_else(|| descended.iter().find_map(|token| render::keyword(sema, config, token)))
174172
// try rest item hover
175173
.or_else(|| {
176174
descended.iter().find_map(|token| {

0 commit comments

Comments
 (0)