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;
3
3
4
4
use crate :: externalfiles:: ExternalHtml ;
5
5
use crate :: html:: render:: SlashChecker ;
6
- use crate :: html:: format:: Buffer ;
7
6
8
7
#[ derive( Clone ) ]
9
8
pub struct Layout {
@@ -38,10 +37,8 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
38
37
t : & T ,
39
38
themes : & [ PathBuf ] ,
40
39
) -> String {
41
- let mut dst = Buffer :: html ( ) ;
42
40
let static_root_path = page. static_root_path . unwrap_or ( page. root_path ) ;
43
- write ! ( dst,
44
- "<!DOCTYPE html>\
41
+ format ! ( "<!DOCTYPE html>\
45
42
<html lang=\" en\" >\
46
43
<head>\
47
44
<meta charset=\" utf-8\" >\
@@ -239,8 +236,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>(
239
236
} else {
240
237
""
241
238
} ,
242
- ) ;
243
- dst. into_inner ( )
239
+ )
244
240
}
245
241
246
242
pub fn redirect ( url : & str ) -> String {
You can’t perform that action at this time.
0 commit comments