diff --git a/src/template_helpers.rs b/src/template_helpers.rs index d584c0c1..1d704a38 100644 --- a/src/template_helpers.rs +++ b/src/template_helpers.rs @@ -8,8 +8,6 @@ use handlebars::{ }; use serde_json::Value as JsonValue; -/// Simple static json helper -type H0 = fn() -> JsonValue; /// Simple json to json helper type H = fn(&JsonValue) -> JsonValue; /// Simple json to json helper with error handling @@ -520,15 +518,6 @@ trait CanHelp: Send + Sync + 'static { fn call(&self, v: &[PathAndJson<'_>]) -> Result; } -impl CanHelp for H0 { - fn call(&self, args: &[PathAndJson<'_>]) -> Result { - match args { - [] => Ok(self()), - _ => Err("expected no arguments".to_string()), - } - } -} - impl CanHelp for H { fn call(&self, args: &[PathAndJson<'_>]) -> Result { match args {