diff options
| author | Richo Healey <richo@psych0tik.net> | 2014-05-25 03:10:11 -0700 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2014-05-27 11:11:15 -0700 |
| commit | 4348e23b269739657d934b532ad061bfd6d92309 (patch) | |
| tree | 4dece24751feb7145444c52fd05a1c5f7ca2de9d /src/libnative | |
| parent | c7fe4ffe3d8315dfe98bee6d040b5a0381daab91 (diff) | |
std: Remove String's to_owned
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/process.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libnative/io/process.rs b/src/libnative/io/process.rs index d1711c1b890..177b90f2e1a 100644 --- a/src/libnative/io/process.rs +++ b/src/libnative/io/process.rs @@ -1103,24 +1103,24 @@ mod tests { assert_eq!( test_wrapper("prog", ["aaa", "bbb", "ccc"]), - "prog aaa bbb ccc".to_owned() + "prog aaa bbb ccc".to_string() ); assert_eq!( test_wrapper("C:\\Program Files\\blah\\blah.exe", ["aaa"]), - "\"C:\\Program Files\\blah\\blah.exe\" aaa".to_owned() + "\"C:\\Program Files\\blah\\blah.exe\" aaa".to_string() ); assert_eq!( test_wrapper("C:\\Program Files\\test", ["aa\"bb"]), - "\"C:\\Program Files\\test\" aa\\\"bb".to_owned() + "\"C:\\Program Files\\test\" aa\\\"bb".to_string() ); assert_eq!( test_wrapper("echo", ["a b c"]), - "echo \"a b c\"".to_owned() + "echo \"a b c\"".to_string() ); assert_eq!( test_wrapper("\u03c0\u042f\u97f3\u00e6\u221e", []), - "\u03c0\u042f\u97f3\u00e6\u221e".to_owned() + "\u03c0\u042f\u97f3\u00e6\u221e".to_string() ); } } |
