From f8e06c49650afd7c9ef749baa72cb8da59880f96 Mon Sep 17 00:00:00 2001 From: Piotr Jawniak Date: Thu, 26 Jun 2014 08:15:14 +0200 Subject: Remove unnecessary to_string calls This commit removes superfluous to_string calls from various places --- src/libsyntax/parse/lexer/comments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/lexer/comments.rs b/src/libsyntax/parse/lexer/comments.rs index a009955f91a..f00c1ab4455 100644 --- a/src/libsyntax/parse/lexer/comments.rs +++ b/src/libsyntax/parse/lexer/comments.rs @@ -135,7 +135,7 @@ pub fn strip_doc_comment_decoration(comment: &str) -> String { let lines = vertical_trim(lines); let lines = horizontal_trim(lines); - return lines.connect("\n").to_string(); + return lines.connect("\n"); } fail!("not a doc-comment: {}", comment); -- cgit 1.4.1-3-g733a5