diff options
author | Kirill Bulatov <[email protected]> | 2021-03-20 20:54:04 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-03-20 20:55:34 +0000 |
commit | 879432452d15d4e9c373a6233a0cd15e22f20ef3 (patch) | |
tree | 918eb815d2da4758d00dfac387b805de6a771c11 /crates/ide_completion | |
parent | a631108d2dd0596b079b59efa37b1af00d7555db (diff) |
Docs
Diffstat (limited to 'crates/ide_completion')
-rw-r--r-- | crates/ide_completion/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide_completion/src/lib.rs b/crates/ide_completion/src/lib.rs index c91c98871..9ecd82b06 100644 --- a/crates/ide_completion/src/lib.rs +++ b/crates/ide_completion/src/lib.rs | |||
@@ -152,12 +152,12 @@ pub fn resolve_completion_edits( | |||
152 | let current_module = ctx.sema.scope(position_for_import).module()?; | 152 | let current_module = ctx.sema.scope(position_for_import).module()?; |
153 | let current_crate = current_module.krate(); | 153 | let current_crate = current_module.krate(); |
154 | 154 | ||
155 | let (import_path, item_to_import) = items_locator::locate_for_name( | 155 | let (import_path, item_to_import) = items_locator::items_with_name( |
156 | &ctx.sema, | 156 | &ctx.sema, |
157 | current_crate, | 157 | current_crate, |
158 | NameToImport::Exact(imported_name), | 158 | NameToImport::Exact(imported_name), |
159 | items_locator::AssocItemSearch::Include, | 159 | items_locator::AssocItemSearch::Include, |
160 | None, | 160 | Some(items_locator::DEFAULT_QUERY_SEARCH_LIMIT), |
161 | ) | 161 | ) |
162 | .into_iter() | 162 | .into_iter() |
163 | .filter_map(|candidate| { | 163 | .filter_map(|candidate| { |