about summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
diff options
context:
space:
mode:
authorPiotr Jawniak <sawyer47@gmail.com>2014-06-26 08:15:14 +0200
committerPiotr Jawniak <sawyer47@gmail.com>2014-06-26 08:56:49 +0200
commitf8e06c49650afd7c9ef749baa72cb8da59880f96 (patch)
tree5d9325ebd7357f26b59ee719b7b8be2d39e43c1d /src/librustdoc/html/render.rs
parent99519cc8e645dd50522c2f32cf55ef8c15583012 (diff)
downloadrust-f8e06c49650afd7c9ef749baa72cb8da59880f96.tar.gz
rust-f8e06c49650afd7c9ef749baa72cb8da59880f96.zip
Remove unnecessary to_string calls
This commit removes superfluous to_string calls from various places
Diffstat (limited to 'src/librustdoc/html/render.rs')
-rw-r--r--src/librustdoc/html/render.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 76e604ecfa2..aacb13156b7 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -370,8 +370,7 @@ fn build_index(krate: &clean::Crate, cache: &mut Cache) -> io::IoResult<String>
                     search_index.push(IndexItem {
                         ty: shortty(item),
                         name: item.name.clone().unwrap(),
-                        path: fqp.slice_to(fqp.len() - 1).connect("::")
-                                                         .to_string(),
+                        path: fqp.slice_to(fqp.len() - 1).connect("::"),
                         desc: shorter(item.doc_value()).to_string(),
                         parent: Some(did),
                     });