File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ pub mod errors {
105
105
foreign_links {
106
106
Io ( :: std:: io:: Error ) ;
107
107
HandlebarsRender ( :: handlebars:: RenderError ) ;
108
- HandlebarsTemplate ( :: handlebars:: TemplateError ) ;
108
+ HandlebarsTemplate ( Box < :: handlebars:: TemplateError > ) ;
109
109
Utf8 ( :: std:: string:: FromUtf8Error ) ;
110
110
}
111
111
@@ -116,4 +116,11 @@ pub mod errors {
116
116
}
117
117
}
118
118
}
119
+
120
+ // Box to halve the size of Error
121
+ impl From < :: handlebars:: TemplateError > for Error {
122
+ fn from ( e : :: handlebars:: TemplateError ) -> Error {
123
+ From :: from ( Box :: new ( e) )
124
+ }
125
+ }
119
126
}
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ impl HtmlHandlebars {
124
124
Ok ( ( ) )
125
125
}
126
126
127
+ #[ cfg_attr( feature = "cargo-clippy" , allow( let_and_return) ) ]
127
128
fn post_process ( & self ,
128
129
rendered : String ,
129
130
filepath : & str ,
You can’t perform that action at this time.
0 commit comments