Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_db/src/items_locator.rs')
| -rw-r--r-- | crates/ide_db/src/items_locator.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ide_db/src/items_locator.rs b/crates/ide_db/src/items_locator.rs index 6a326eb4ca..a3ea3edc97 100644 --- a/crates/ide_db/src/items_locator.rs +++ b/crates/ide_db/src/items_locator.rs @@ -117,9 +117,8 @@ fn find_items<'a>( .into_iter() .filter_map(move |local_candidate| get_name_definition(sema, &local_candidate)) .filter_map(|name_definition_to_import| match name_definition_to_import { - Definition::ModuleDef(module_def) => Some(ItemInNs::from(module_def)), Definition::Macro(macro_def) => Some(ItemInNs::from(macro_def)), - _ => None, + def => <Option<_>>::from(def), }); external_importables.chain(local_results).filter(move |&item| match assoc_item_search { |