Use new Definition::usages API in expand glob import

This commit is contained in:
unexge 2020-08-19 20:16:03 +03:00
parent 5cff4b60be
commit ef54e8451d

View file

@ -98,7 +98,7 @@ impl Def {
};
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()
}
}