@@ -433,7 +433,7 @@ pub fn run(mut krate: clean::Crate,
433
433
krate : krate. name . clone ( ) ,
434
434
playground_url : "" . to_string ( ) ,
435
435
} ,
436
- css_file_extension : css_file_extension,
436
+ css_file_extension : css_file_extension. clone ( ) ,
437
437
} ;
438
438
439
439
// Crawl the crate attributes looking for attributes which control how we're
@@ -653,7 +653,7 @@ fn write_shared(cx: &Context,
653
653
include_bytes ! ( "static/rustdoc.css" ) ) ?;
654
654
write ( cx. dst . join ( "main.css" ) ,
655
655
include_bytes ! ( "static/styles/main.css" ) ) ?;
656
- if let Some ( ref css) = cx. css_file_extension {
656
+ if let Some ( ref css) = cx. shared . css_file_extension {
657
657
let mut content = String :: new ( ) ;
658
658
let css = css. as_path ( ) ;
659
659
let mut f = try_err ! ( File :: open( css) , css) ;
@@ -948,9 +948,9 @@ impl<'a> SourceCollector<'a> {
948
948
description : & desc,
949
949
keywords : BASIC_KEYWORDS ,
950
950
} ;
951
- layout:: render ( & mut w, & self . cx . layout ,
951
+ layout:: render ( & mut w, & self . scx . layout ,
952
952
& page, & ( "" ) , & Source ( contents) ,
953
- self . cx . css_file_extension . is_some ( ) ) ?;
953
+ self . scx . css_file_extension . is_some ( ) ) ?;
954
954
w. flush ( ) ?;
955
955
self . scx . local_sources . insert ( p, href) ;
956
956
Ok ( ( ) )
@@ -1313,7 +1313,7 @@ impl Context {
1313
1313
layout:: render ( & mut writer, & cx. shared . layout , & page,
1314
1314
& Sidebar { cx : cx, item : it } ,
1315
1315
& Item { cx : cx, item : it } ,
1316
- cx. css_file_extension . is_some ( ) ) ?;
1316
+ cx. shared . css_file_extension . is_some ( ) ) ?;
1317
1317
} else {
1318
1318
let mut url = repeat ( "../" ) . take ( cx. current . len ( ) )
1319
1319
. collect :: < String > ( ) ;
0 commit comments