From 3125fc786357d6bd7494480d084a49ea7eba067f Mon Sep 17 00:00:00 2001 From: Luke Peterson Date: Tue, 9 Jul 2024 17:22:57 +0900 Subject: [PATCH] Fixing build with `pkg_mgmt` feature disabled --- lib/src/metta/runner/builtin_mods/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/metta/runner/builtin_mods/mod.rs b/lib/src/metta/runner/builtin_mods/mod.rs index 4a3c4158f..bd7f5fd3f 100644 --- a/lib/src/metta/runner/builtin_mods/mod.rs +++ b/lib/src/metta/runner/builtin_mods/mod.rs @@ -6,7 +6,8 @@ use crate::metta::runner::Metta; pub mod catalog_mods; pub fn load_builtin_mods(metta: &Metta) -> Result<(), String> { - let _mod_id = metta.load_module_direct(Box::new(catalog_mods::CatalogModLoader), "catalog").map_err(|e| format!("error loading builtin \"catalog\" module: {e}")); + #[cfg(feature = "pkg_mgmt")] + let _mod_id = metta.load_module_direct(Box::new(catalog_mods::CatalogModLoader), "catalog").map_err(|e| format!("error loading builtin \"catalog\" module: {e}"))?; Ok(()) }