Skip to content

Commit 74e92a8

Browse files
committed
Format goto_type_definition
1 parent de5c506 commit 74e92a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tools/rust-analyzer/crates/ide/src/goto_type_definition.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ pub(crate) fn goto_type_definition(
7070
}
7171

7272
let range = token.text_range();
73-
sema.descend_into_macros_no_opaque(token,false)
73+
sema.descend_into_macros_no_opaque(token, false)
7474
.into_iter()
7575
.filter_map(|token| {
76-
sema
77-
.token_ancestors_with_macros(token.value)
76+
sema.token_ancestors_with_macros(token.value)
7877
// When `token` is within a macro call, we can't determine its type. Don't continue
7978
// this traversal because otherwise we'll end up returning the type of *that* macro
8079
// call, which is not what we want in general.
@@ -103,7 +102,6 @@ pub(crate) fn goto_type_definition(
103102
_ => return None,
104103
}
105104
};
106-
107105
Some(ty)
108106
})
109107
})

0 commit comments

Comments
 (0)