about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-08-23 10:14:52 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2018-08-23 10:14:52 +0200
commitede1f7d2a5a2f4038e3f3b2e953c44ee5ea06194 (patch)
treecdaa95ead9a05ae228478333ccd15b88ac115ea7 /src/libsyntax/parse/lexer
parente73077e10603b3586828f2d3d067f804c2fc0a1f (diff)
downloadrust-ede1f7d2a5a2f4038e3f3b2e953c44ee5ea06194.tar.gz
rust-ede1f7d2a5a2f4038e3f3b2e953c44ee5ea06194.zip
use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()
Diffstat (limited to 'src/libsyntax/parse/lexer')
-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 dde0466f43c..172a48ddba2 100644
--- a/src/libsyntax/parse/lexer/comments.rs
+++ b/src/libsyntax/parse/lexer/comments.rs
@@ -230,7 +230,7 @@ fn trim_whitespace_prefix_and_push_line(lines: &mut Vec<String>, s: String, col:
             if col < len {
                 (&s[col..len]).to_string()
             } else {
-                "".to_string()
+                String::new()
             }
         }
         None => s,