Skip to content

Commit b0cf982

Browse files
committed
fix formatting
1 parent b7cfb30 commit b0cf982

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crates/ide/src/runnables.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,15 @@ fn find_selected_test(
219219
syntax: &SyntaxNode,
220220
position: FilePosition,
221221
) -> Option<Runnable> {
222-
syntax
223-
.token_at_offset(position.offset)
224-
.next()
225-
.and_then(|token| token.parent())
226-
.and_then(|node| {
222+
syntax.token_at_offset(position.offset).next().and_then(|token| token.parent()).and_then(
223+
|node| {
227224
node.ancestors().find_map(|ancestor| {
228225
let fn_def = ast::Fn::cast(ancestor)?;
229226
test_related_attribute(&fn_def)?;
230227
as_test_runnable(sema, &fn_def)
231228
})
232-
})
229+
},
230+
)
233231
}
234232

235233
// Feature: Related Tests

0 commit comments

Comments
 (0)