@@ -65,7 +65,7 @@ use crate::docfs::{DocFS, ErrorStorage, PathError};
65
65
use crate :: doctree;
66
66
use crate :: fold:: DocFolder ;
67
67
use crate :: html:: escape:: Escape ;
68
- use crate :: html:: format:: { Print , Buffer , AsyncSpace , ConstnessSpace } ;
68
+ use crate :: html:: format:: { Buffer , AsyncSpace , ConstnessSpace } ;
69
69
use crate :: html:: format:: { GenericBounds , WhereClause , href, AbiSpace , DefaultSpace } ;
70
70
use crate :: html:: format:: { VisSpace , Function , UnsafetySpace , MutableSpace } ;
71
71
use crate :: html:: format:: fmt_impl_for_trait_page;
@@ -1172,7 +1172,7 @@ themePicker.onblur = handleThemeButtonsBlur;
1172
1172
} )
1173
1173
. collect:: <String >( ) ) ;
1174
1174
let v = layout:: render ( & cx. shared . layout ,
1175
- & page, "" , & content,
1175
+ & page, "" , content,
1176
1176
& cx. shared . themes ) ;
1177
1177
cx. shared . fs . write ( & dst, v. as_bytes ( ) ) ?;
1178
1178
}
@@ -1919,7 +1919,7 @@ impl Context {
1919
1919
String :: new ( )
1920
1920
} ;
1921
1921
let v = layout:: render ( & self . shared . layout ,
1922
- & page, sidebar, & all,
1922
+ & page, sidebar, | buf : & mut Buffer | buf . from_display ( all) ,
1923
1923
& self . shared . themes ) ;
1924
1924
self . shared . fs . write ( & final_file, v. as_bytes ( ) ) ?;
1925
1925
@@ -1935,7 +1935,7 @@ impl Context {
1935
1935
themes. push ( PathBuf :: from ( "settings.css" ) ) ;
1936
1936
let v = layout:: render (
1937
1937
& self . shared . layout ,
1938
- & page, sidebar, & settings,
1938
+ & page, sidebar, | buf : & mut Buffer | buf . from_display ( settings) ,
1939
1939
& themes) ;
1940
1940
self . shared . fs . write ( & settings_file, v. as_bytes ( ) ) ?;
1941
1941
@@ -1993,7 +1993,7 @@ impl Context {
1993
1993
if !self . render_redirect_pages {
1994
1994
layout:: render ( & self . shared . layout , & page,
1995
1995
|buf : & mut _ | print_sidebar ( self , it, buf) ,
1996
- & Item { cx : self , item : it } ,
1996
+ | buf : & mut Buffer | buf . from_display ( Item { cx : self , item : it } ) ,
1997
1997
& self . shared . themes )
1998
1998
} else {
1999
1999
let mut url = self . root_path ( ) ;
0 commit comments