mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 01:38:13 +00:00
Use new Definition::usages
API in expand glob import
This commit is contained in:
parent
5cff4b60be
commit
ef54e8451d
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue