File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ use std::path::PathBuf;
33
44use crate :: externalfiles:: ExternalHtml ;
55use crate :: html:: render:: SlashChecker ;
6- use crate :: html:: format:: Buffer ;
76
87#[ derive( Clone ) ]
98pub struct Layout {
@@ -38,10 +37,8 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
3837 t : & T ,
3938 themes : & [ PathBuf ] ,
4039) -> String {
41- let mut dst = Buffer :: html ( ) ;
4240 let static_root_path = page. static_root_path . unwrap_or ( page. root_path ) ;
43- write ! ( dst,
44- "<!DOCTYPE html>\
41+ format ! ( "<!DOCTYPE html>\
4542 <html lang=\" en\" >\
4643 <head>\
4744 <meta charset=\" utf-8\" >\
@@ -239,8 +236,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
239236 } else {
240237 ""
241238 } ,
242- ) ;
243- dst. into_inner ( )
239+ )
244240}
245241
246242pub fn redirect ( url : & str ) -> String {
You can’t perform that action at this time.
0 commit comments