Skip to content

Commit

Permalink
Merge pull request #736 from luketpeterson/main
Browse files Browse the repository at this point in the history
Fix build with `pkg_mgmt` feature disabled
  • Loading branch information
vsbogd authored Jul 9, 2024
2 parents 754b7ba + 0c8b2b2 commit 7844382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/metta/runner/builtin_mods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

0 comments on commit 7844382

Please sign in to comment.