cleanup: s/v.slice*()/&v[a..b]/g + remove redundant as_slice() calls

This commit is contained in:
Jorge Aparicio
2015-01-26 21:21:15 -05:00
parent d77f6d5366
commit bce81e2464
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("/")
},