Browse Source

Stop exposing minijinja error type outside of the template module

pull/100/head
Rodolphe Bréard 1 year ago
parent
commit
e302789bca
  1. 3
      acmed/src/template.rs

3
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<Value, minijinja::Error> {
}
}
pub fn render_template<T>(template: &str, data: &T) -> Result<String, minijinja::Error>
pub fn render_template<T>(template: &str, data: &T) -> Result<String, Error>
where
T: Serialize,
{

Loading…
Cancel
Save