aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorunexge <[email protected]>2020-08-19 18:16:03 +0100
committerunexge <[email protected]>2020-08-20 19:35:47 +0100
commitef54e8451d2ebe20e900f9bea4545795ebd035c7 (patch)
tree2e7c584383331430dda8dea412f14d66a0024f7f /crates
parent5cff4b60bedf4d0b2e30d08aa19686584202a560 (diff)
Use new `Definition::usages` API in expand glob import
Diffstat (limited to 'crates')
-rw-r--r--crates/assists/src/handlers/expand_glob_import.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/assists/src/handlers/expand_glob_import.rs b/crates/assists/src/handlers/expand_glob_import.rs
index eb6dd68bb..b39d040f6 100644
--- a/crates/assists/src/handlers/expand_glob_import.rs
+++ b/crates/assists/src/handlers/expand_glob_import.rs
@@ -98,7 +98,7 @@ impl Def {
98 }; 98 };
99 99
100 let search_scope = SearchScope::single_file(ctx.frange.file_id); 100 let search_scope = SearchScope::single_file(ctx.frange.file_id);
101 !def.find_usages(&ctx.sema, Some(search_scope)).is_empty() 101 def.usages(&ctx.sema).in_scope(search_scope).at_least_one()
102 } 102 }
103} 103}
104 104