about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-06-26 12:46:25 +0000
committerbors <bors@rust-lang.org>2014-06-26 12:46:25 +0000
commitfc502e23458c695b008e3470ec5ef40421b8aaa2 (patch)
tree00a321fb8070b7e3a2f150fef5adcf7e396b3467 /src/libsyntax/parse
parent389fae2ca85dc83da8deb70cc7c5acc50e87e684 (diff)
parentf8e06c49650afd7c9ef749baa72cb8da59880f96 (diff)
downloadrust-fc502e23458c695b008e3470ec5ef40421b8aaa2.tar.gz
rust-fc502e23458c695b008e3470ec5ef40421b8aaa2.zip
auto merge of #15194 : Sawyer47/rust/to-string-cleanup, r=alexcrichton
This commit removes superfluous to_string calls from various places
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/comments.rs2
1 files changed, 1 insertions, 1 deletions
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);