@@ -65,7 +65,7 @@ use crate::docfs::{DocFS, ErrorStorage, PathError};
6565use crate :: doctree;
6666use crate :: fold:: DocFolder ;
6767use crate :: html:: escape:: Escape ;
68- use crate :: html:: format:: { Print , Buffer , AsyncSpace , ConstnessSpace } ;
68+ use crate :: html:: format:: { Buffer , AsyncSpace , ConstnessSpace } ;
6969use crate :: html:: format:: { GenericBounds , WhereClause , href, AbiSpace , DefaultSpace } ;
7070use crate :: html:: format:: { VisSpace , Function , UnsafetySpace , MutableSpace } ;
7171use crate :: html:: format:: fmt_impl_for_trait_page;
@@ -1172,7 +1172,7 @@ themePicker.onblur = handleThemeButtonsBlur;
11721172 } )
11731173 . collect:: <String >( ) ) ;
11741174 let v = layout:: render ( & cx. shared . layout ,
1175- & page, "" , & content,
1175+ & page, "" , content,
11761176 & cx. shared . themes ) ;
11771177 cx. shared . fs . write ( & dst, v. as_bytes ( ) ) ?;
11781178 }
@@ -1919,7 +1919,7 @@ impl Context {
19191919 String :: new ( )
19201920 } ;
19211921 let v = layout:: render ( & self . shared . layout ,
1922- & page, sidebar, & all,
1922+ & page, sidebar, | buf : & mut Buffer | buf . from_display ( all) ,
19231923 & self . shared . themes ) ;
19241924 self . shared . fs . write ( & final_file, v. as_bytes ( ) ) ?;
19251925
@@ -1935,7 +1935,7 @@ impl Context {
19351935 themes. push ( PathBuf :: from ( "settings.css" ) ) ;
19361936 let v = layout:: render (
19371937 & self . shared . layout ,
1938- & page, sidebar, & settings,
1938+ & page, sidebar, | buf : & mut Buffer | buf . from_display ( settings) ,
19391939 & themes) ;
19401940 self . shared . fs . write ( & settings_file, v. as_bytes ( ) ) ?;
19411941
@@ -1993,7 +1993,7 @@ impl Context {
19931993 if !self . render_redirect_pages {
19941994 layout:: render ( & self . shared . layout , & page,
19951995 |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 } ) ,
19971997 & self . shared . themes )
19981998 } else {
19991999 let mut url = self . root_path ( ) ;
0 commit comments