aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_completion/src')
-rw-r--r--crates/ide_completion/src/lib.rs4
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| {