From 9f31f59fdfb11805c1986c1f0b8123b7e907089b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Palenica?= Date: Wed, 20 Oct 2021 23:37:31 -0700 Subject: [PATCH] Cleanup - remove unnecessary pub --- crates/ide_db/src/helpers/import_assets.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }