From e302789bca4af8a9305fad3924119b13d725cd78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 1 Jul 2023 16:17:45 +0200 Subject: [PATCH] Stop exposing minijinja error type outside of the template module --- acmed/src/template.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acmed/src/template.rs b/acmed/src/template.rs index 2b46975..7bc07bb 100644 --- a/acmed/src/template.rs +++ b/acmed/src/template.rs @@ -1,3 +1,4 @@ +use acme_common::error::Error; use minijinja::{value::Value, Environment}; use serde::Serialize; @@ -9,7 +10,7 @@ fn formatter_rev_labels(value: Value) -> Result { } } -pub fn render_template(template: &str, data: &T) -> Result +pub fn render_template(template: &str, data: &T) -> Result where T: Serialize, {