diff --git a/crates/ide_db/src/helpers/import_assets.rs b/crates/ide_db/src/helpers/import_assets.rs index 7170e14d848..f1e8ee4935d 100644 --- a/crates/ide_db/src/helpers/import_assets.rs +++ b/crates/ide_db/src/helpers/import_assets.rs @@ -619,6 +619,6 @@ fn path_import_candidate( }) } -pub fn item_as_assoc(db: &RootDatabase, item: ItemInNs) -> Option { +fn item_as_assoc(db: &RootDatabase, item: ItemInNs) -> Option { item.as_module_def().and_then(|module_def| module_def.as_assoc_item(db)) }