mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Updated search to expose some more functions and to make search take the search scope by reference.
This commit is contained in:
parent
5f11c9a1c3
commit
b9cef03230
12 changed files with 27 additions and 28 deletions
|
@ -384,7 +384,7 @@ impl LocalUsages {
|
|||
Self(
|
||||
Definition::Local(var)
|
||||
.usages(&ctx.sema)
|
||||
.in_scope(SearchScope::single_file(ctx.file_id()))
|
||||
.in_scope(&SearchScope::single_file(ctx.file_id()))
|
||||
.all(),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue