diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2018-08-23 10:14:52 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2018-08-23 10:14:52 +0200 |
| commit | ede1f7d2a5a2f4038e3f3b2e953c44ee5ea06194 (patch) | |
| tree | cdaa95ead9a05ae228478333ccd15b88ac115ea7 /src/libsyntax/ext/source_util.rs | |
| parent | e73077e10603b3586828f2d3d067f804c2fc0a1f (diff) | |
| download | rust-ede1f7d2a5a2f4038e3f3b2e953c44ee5ea06194.tar.gz rust-ede1f7d2a5a2f4038e3f3b2e953c44ee5ea06194.zip | |
use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()
Diffstat (limited to 'src/libsyntax/ext/source_util.rs')
| -rw-r--r-- | src/libsyntax/ext/source_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/source_util.rs b/src/libsyntax/ext/source_util.rs index 19a204cc989..e4b9e3216b1 100644 --- a/src/libsyntax/ext/source_util.rs +++ b/src/libsyntax/ext/source_util.rs @@ -184,7 +184,7 @@ pub fn expand_include_bytes(cx: &mut ExtCtxt, sp: Span, tts: &[tokenstream::Toke Ok(..) => { // Add this input file to the code map to make it available as // dependency information, but don't enter it's contents - cx.source_map().new_source_file(file.into(), "".to_string()); + cx.source_map().new_source_file(file.into(), String::new()); base::MacEager::expr(cx.expr_lit(sp, ast::LitKind::ByteStr(Lrc::new(bytes)))) } |
