Skip to content

Commit 313b004

Browse files
committed
fixup! feat: add inline_type_alias_uses assist
1 parent 6d6356b commit 313b004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide-assists/src/handlers/inline_type_alias.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub(crate) fn inline_type_alias_uses(acc: &mut Assists, ctx: &AssistContext<'_>)
6666
.into_iter()
6767
.filter_map(|file_ref| match file_ref.name {
6868
ast::NameLike::NameRef(path_type) => {
69-
path_type.syntax().ancestors().find_map(ast::PathType::cast)
69+
path_type.syntax().ancestors().nth(3).and_then(ast::PathType::cast)
7070
}
7171
_ => None,
7272
})

0 commit comments

Comments
 (0)