use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()
This commit is contained in:
parent
e73077e106
commit
ede1f7d2a5
87 changed files with 133 additions and 133 deletions
|
@ -1030,7 +1030,7 @@ mod tests {
|
|||
cm.new_source_file(PathBuf::from("blork.rs").into(),
|
||||
"first line.\nsecond line".to_string());
|
||||
cm.new_source_file(PathBuf::from("empty.rs").into(),
|
||||
"".to_string());
|
||||
String::new());
|
||||
cm.new_source_file(PathBuf::from("blork2.rs").into(),
|
||||
"first line.\nsecond line".to_string());
|
||||
cm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue