diff --git a/cli/src/template_builder.rs b/cli/src/template_builder.rs index 84f6d97c7..2fda332a2 100644 --- a/cli/src/template_builder.rs +++ b/cli/src/template_builder.rs @@ -262,10 +262,7 @@ pub struct CoreTemplateBuildFnTable<'a, L: TemplateLanguage<'a> + ?Sized> { // TODO: add global functions table? } -pub fn merge_fn_map<'a, L: TemplateLanguage<'a> + ?Sized, T>( - base: &mut TemplateBuildMethodFnMap<'a, L, T>, - extension: TemplateBuildMethodFnMap<'a, L, T>, -) { +pub fn merge_fn_map<'s, F>(base: &mut HashMap<&'s str, F>, extension: HashMap<&'s str, F>) { for (name, function) in extension { if base.insert(name, function).is_some() { panic!("Conflicting template definitions for '{name}' function");