diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-11-23 11:18:51 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-11-26 10:02:26 +0100 |
| commit | 24b316a3b9567cb2cc2fb6644bd891dbf8855c18 (patch) | |
| tree | 567d9df8a078d09fc610ea3e0b301f5cb6fb63d8 /src/librustdoc/html/render.rs | |
| parent | b42c4388927db75f9a38edbeafbfe13775b1773d (diff) | |
| download | rust-24b316a3b9567cb2cc2fb6644bd891dbf8855c18.tar.gz rust-24b316a3b9567cb2cc2fb6644bd891dbf8855c18.zip | |
Removed unneccessary `_iter` suffixes from various APIs
Diffstat (limited to 'src/librustdoc/html/render.rs')
| -rw-r--r-- | src/librustdoc/html/render.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 3ec66123c23..96219479e10 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -338,7 +338,7 @@ fn mkdir(path: &Path) { fn clean_srcpath(src: &[u8], f: &fn(&str)) { let p = Path::new(src); if p.as_vec() != bytes!(".") { - for c in p.str_component_iter().map(|x|x.unwrap()) { + for c in p.str_components().map(|x|x.unwrap()) { if ".." == c { f("up"); } else { @@ -1621,7 +1621,7 @@ fn build_sidebar(m: &clean::Module) -> HashMap<~str, ~[~str]> { impl<'self> fmt::Default for Source<'self> { fn fmt(s: &Source<'self>, fmt: &mut fmt::Formatter) { - let lines = s.line_iter().len(); + let lines = s.lines().len(); let mut cols = 0; let mut tmp = lines; while tmp > 0 { |
