diff options
| author | Piotr Jawniak <sawyer47@gmail.com> | 2014-06-26 08:15:14 +0200 |
|---|---|---|
| committer | Piotr Jawniak <sawyer47@gmail.com> | 2014-06-26 08:56:49 +0200 |
| commit | f8e06c49650afd7c9ef749baa72cb8da59880f96 (patch) | |
| tree | 5d9325ebd7357f26b59ee719b7b8be2d39e43c1d /src/libsyntax/parse/lexer/comments.rs | |
| parent | 99519cc8e645dd50522c2f32cf55ef8c15583012 (diff) | |
| download | rust-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/libsyntax/parse/lexer/comments.rs')
| -rw-r--r-- | src/libsyntax/parse/lexer/comments.rs | 2 |
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); |
