diff options
Diffstat (limited to 'crates/assists/src')
-rw-r--r-- | crates/assists/src/handlers/expand_glob_import.rs | 2 |
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 | ||