Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yuma140902 committed Nov 10, 2023
1 parent c5adf20 commit 948c392
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/template_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ impl TemplateEngine {
&mut self,
name: &str,
string: String,
) -> Result<(), handlebars::TemplateError> {
self.0.register_template_string(name, string)
) -> Result<(), Box<handlebars::TemplateError>> {
self.0
.register_template_string(name, string)
.map_err(Box::new)
}

pub fn register_template(&mut self, name: &str, tpl: handlebars::Template) {
Expand Down

0 comments on commit 948c392

Please sign in to comment.