diff options
| author | bors <bors@rust-lang.org> | 2014-04-18 18:46:33 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-04-18 18:46:33 -0700 |
| commit | af24045ff0e17764524a9eaf243479a3260c2d8b (patch) | |
| tree | bc160d119b2d963afa53e9bbb59aacee6bdc4ecd /src/libnative | |
| parent | 9b7cfd3c724bbad9dd8a0115bb2619f307b73f8c (diff) | |
| parent | 919889a1d688a6bbe2edac8705f048f06b1b455c (diff) | |
auto merge of #13607 : brson/rust/to_owned, r=brson
Continues https://github.com/mozilla/rust/pull/13548
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/process.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libnative/io/process.rs b/src/libnative/io/process.rs index 385287d998e..a29a5b631c6 100644 --- a/src/libnative/io/process.rs +++ b/src/libnative/io/process.rs @@ -854,20 +854,20 @@ mod tests { fn test_make_command_line() { use super::make_command_line; assert_eq!( - make_command_line("prog", [~"aaa", ~"bbb", ~"ccc"]), - ~"prog aaa bbb ccc" + make_command_line("prog", ["aaa".to_owned(), "bbb".to_owned(), "ccc".to_owned()]), + "prog aaa bbb ccc".to_owned() ); assert_eq!( - make_command_line("C:\\Program Files\\blah\\blah.exe", [~"aaa"]), - ~"\"C:\\Program Files\\blah\\blah.exe\" aaa" + make_command_line("C:\\Program Files\\blah\\blah.exe", ["aaa".to_owned()]), + "\"C:\\Program Files\\blah\\blah.exe\" aaa".to_owned() ); assert_eq!( - make_command_line("C:\\Program Files\\test", [~"aa\"bb"]), - ~"\"C:\\Program Files\\test\" aa\\\"bb" + make_command_line("C:\\Program Files\\test", ["aa\"bb".to_owned()]), + "\"C:\\Program Files\\test\" aa\\\"bb".to_owned() ); assert_eq!( - make_command_line("echo", [~"a b c"]), - ~"echo \"a b c\"" + make_command_line("echo", ["a b c".to_owned()]), + "echo \"a b c\"".to_owned() ); } } |
