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/tools/compiletest | |
| 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/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/header.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs index 3fd67366a8c..db856a1dcf9 100644 --- a/src/tools/compiletest/src/header.rs +++ b/src/tools/compiletest/src/header.rs @@ -559,7 +559,7 @@ impl Config { let mut strs: Vec<String> = nv.splitn(2, '=').map(str::to_owned).collect(); match strs.len() { - 1 => (strs.pop().unwrap(), "".to_owned()), + 1 => (strs.pop().unwrap(), String::new()), 2 => { let end = strs.pop().unwrap(); (strs.pop().unwrap(), end) |
