@@ -253,7 +253,7 @@ thread_local!(pub static CURRENT_LOCATION_KEY: RefCell<Vec<String>> =
253
253
pub fn run ( mut krate : clean:: Crate ,
254
254
external_html : & ExternalHtml ,
255
255
dst : Path ,
256
- passes : HashSet < String > ) -> io :: IoResult < ( ) > {
256
+ passes : HashSet < String > ) -> json :: EncodeResult {
257
257
let mut cx = Context {
258
258
dst : dst,
259
259
src_root : krate. src . dir_path ( ) ,
@@ -1084,7 +1084,7 @@ impl Context {
1084
1084
/// This currently isn't parallelized, but it'd be pretty easy to add
1085
1085
/// parallelization to this function.
1086
1086
fn krate ( mut self , mut krate : clean:: Crate ,
1087
- stability : stability_summary:: ModuleSummary ) -> io :: IoResult < ( ) > {
1087
+ stability : stability_summary:: ModuleSummary ) -> json :: EncodeResult {
1088
1088
let mut item = match krate. module . take ( ) {
1089
1089
Some ( i) => i,
1090
1090
None => return Ok ( ( ) )
@@ -1110,9 +1110,10 @@ impl Context {
1110
1110
} ;
1111
1111
let html_dst = & this. dst . join ( "stability.html" ) ;
1112
1112
let mut html_out = BufferedWriter :: new ( try!( File :: create ( html_dst) ) ) ;
1113
- layout:: render ( & mut html_out, & this. layout , & page,
1113
+ try! ( layout:: render ( & mut html_out, & this. layout , & page,
1114
1114
& Sidebar { cx : this, item : & item } ,
1115
- & stability)
1115
+ & stability) ) ;
1116
+ Ok ( ( ) )
1116
1117
} ) ) ;
1117
1118
1118
1119
// render the crate documentation
0 commit comments