From 7ad8b90af3acf69089f8e6c3da18bc8fd60204c9 Mon Sep 17 00:00:00 2001 From: 81reap Date: Tue, 1 Sep 2026 19:52:04 -0400 Subject: [PATCH] fix(template_helpers) :: remove unsued `H0` --- src/template_helpers.rs | 11 ----------- 1 file changed, 11 deletions(-) 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 {