We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6356b commit 313b004Copy full SHA for 313b004
crates/ide-assists/src/handlers/inline_type_alias.rs
@@ -66,7 +66,7 @@ pub(crate) fn inline_type_alias_uses(acc: &mut Assists, ctx: &AssistContext<'_>)
66
.into_iter()
67
.filter_map(|file_ref| match file_ref.name {
68
ast::NameLike::NameRef(path_type) => {
69
- path_type.syntax().ancestors().find_map(ast::PathType::cast)
+ path_type.syntax().ancestors().nth(3).and_then(ast::PathType::cast)
70
}
71
_ => None,
72
})
0 commit comments