Updated search to expose some more functions and to make search take the search scope by reference.

This commit is contained in:
Josiah Bills 2023-07-09 17:20:18 -04:00
parent 5f11c9a1c3
commit b9cef03230
12 changed files with 27 additions and 28 deletions

View file

@ -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(),
)
}