diff --git a/src/error-index-generator/main.rs b/src/error-index-generator/main.rs index cbb67014e27..4b10b02f2d4 100644 --- a/src/error-index-generator/main.rs +++ b/src/error-index-generator/main.rs @@ -34,10 +34,7 @@ fn load_all_errors(metadata_dir: &Path) -> Result> let path = try!(entry).path(); let mut metadata_str = String::new(); - try!( - File::open(&path).and_then(|mut f| - f.read_to_string(&mut metadata_str)) - ); + try!(File::open(&path).and_then(|mut f| f.read_to_string(&mut metadata_str))); let some_errors: ErrorMetadataMap = try!(json::decode(&metadata_str)); @@ -78,24 +75,23 @@ r##" // Enclose each error in a div so they can be shown/hidden en masse. let desc_desc = match info.description { Some(_) => "error-described", - None => "error-undescribed" + None => "error-undescribed", }; let use_desc = match info.use_site { Some(_) => "error-used", - None => "error-unused" + None => "error-unused", }; try!(write!(&mut output_file, "
", desc_desc, use_desc)); // Error title (with self-link). try!(write!(&mut output_file, - "

{0}

\n", - err_code - )); + "

{0}

\n", + err_code)); // Description rendered as markdown. match info.description { Some(ref desc) => try!(write!(&mut output_file, "{}", Markdown(desc))), - None => try!(write!(&mut output_file, "

No description.

\n")) + None => try!(write!(&mut output_file, "

No description.

\n")), } try!(write!(&mut output_file, "
\n"));