File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -202,11 +202,13 @@ pub trait DynTemplate {
202
202
}
203
203
204
204
impl < T : Template > DynTemplate for T {
205
+ #[ inline]
205
206
#[ cfg( feature = "alloc" ) ]
206
207
fn dyn_render ( & self ) -> Result < String > {
207
208
<Self as Template >:: render ( self )
208
209
}
209
210
211
+ #[ inline]
210
212
fn dyn_render_into ( & self , writer : & mut dyn fmt:: Write ) -> Result < ( ) > {
211
213
<Self as Template >:: render_into ( self , writer)
212
214
}
@@ -217,12 +219,14 @@ impl<T: Template> DynTemplate for T {
217
219
<Self as Template >:: write_into ( self , writer)
218
220
}
219
221
222
+ #[ inline]
220
223
fn size_hint ( & self ) -> usize {
221
- Self :: SIZE_HINT
224
+ < Self as Template > :: SIZE_HINT
222
225
}
223
226
}
224
227
225
228
impl fmt:: Display for dyn DynTemplate {
229
+ #[ inline]
226
230
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
227
231
self . dyn_render_into ( f) . map_err ( |_| fmt:: Error { } )
228
232
}
You can’t perform that action at this time.
0 commit comments