Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/template_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -520,15 +518,6 @@ trait CanHelp: Send + Sync + 'static {
fn call(&self, v: &[PathAndJson<'_>]) -> Result<JsonValue, String>;
}

impl CanHelp for H0 {
fn call(&self, args: &[PathAndJson<'_>]) -> Result<JsonValue, String> {
match args {
[] => Ok(self()),
_ => Err("expected no arguments".to_string()),
}
}
}

impl CanHelp for H {
fn call(&self, args: &[PathAndJson<'_>]) -> Result<JsonValue, String> {
match args {
Expand Down