1
Fork 0

Fallout from stabilization.

This commit is contained in:
Aaron Turon 2015-01-17 16:15:52 -08:00
parent 092ba6a856
commit a506d4cbfe
49 changed files with 126 additions and 125 deletions

View file

@ -749,7 +749,7 @@ impl<'a> SourceCollector<'a> {
// Remove the utf-8 BOM if any
let contents = if contents.starts_with("\u{feff}") {
contents.slice_from(3)
&contents[3..]
} else {
contents
};
@ -1469,7 +1469,7 @@ fn full_path(cx: &Context, item: &clean::Item) -> String {
fn shorter<'a>(s: Option<&'a str>) -> &'a str {
match s {
Some(s) => match s.find_str("\n\n") {
Some(pos) => s.slice_to(pos),
Some(pos) => &s[..pos],
None => s,
},
None => ""