commit
cb5ae21b89
|
@ -105,7 +105,7 @@ pub mod errors {
|
||||||
foreign_links {
|
foreign_links {
|
||||||
Io(::std::io::Error);
|
Io(::std::io::Error);
|
||||||
HandlebarsRender(::handlebars::RenderError);
|
HandlebarsRender(::handlebars::RenderError);
|
||||||
HandlebarsTemplate(::handlebars::TemplateError);
|
HandlebarsTemplate(Box<::handlebars::TemplateError>);
|
||||||
Utf8(::std::string::FromUtf8Error);
|
Utf8(::std::string::FromUtf8Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,4 +116,11 @@ pub mod errors {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Box to halve the size of Error
|
||||||
|
impl From<::handlebars::TemplateError> for Error {
|
||||||
|
fn from(e: ::handlebars::TemplateError) -> Error {
|
||||||
|
From::from(Box::new(e))
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ impl HtmlHandlebars {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(feature = "cargo-clippy", allow(let_and_return))]
|
||||||
fn post_process(&self,
|
fn post_process(&self,
|
||||||
rendered: String,
|
rendered: String,
|
||||||
filepath: &str,
|
filepath: &str,
|
||||||
|
|
Loading…
Reference in New Issue