Auto merge of #21680 - japaric:slice, r=alexcrichton

Replaces `slice_*` method calls with slicing syntax, and removes `as_slice()` calls that are redundant due to `Deref`.
This commit is contained in:
bors
2015-01-29 05:47:21 +00:00
59 changed files with 156 additions and 160 deletions

View File

@@ -753,7 +753,7 @@ impl fmt::Display for ModuleSummary {
try!(write!(f, "<tr>"));
try!(write!(f, "<td><a href='{}'>{}</a></td>", {
let mut url = context.slice_from(1).to_vec();
let mut url = context[1..].to_vec();
url.push("index.html");
url.connect("/")
},