Use new Definition::usages
API in expand glob import
This commit is contained in:
parent
5cff4b60be
commit
ef54e8451d
@ -98,7 +98,7 @@ fn is_referenced_in(&self, ctx: &AssistContext) -> bool {
|
||||
};
|
||||
|
||||
let search_scope = SearchScope::single_file(ctx.frange.file_id);
|
||||
!def.find_usages(&ctx.sema, Some(search_scope)).is_empty()
|
||||
def.usages(&ctx.sema).in_scope(search_scope).at_least_one()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user