about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2014-04-15 18:17:48 -0700
committerBrian Anderson <banderson@mozilla.com>2014-04-18 17:25:34 -0700
commit919889a1d688a6bbe2edac8705f048f06b1b455c (patch)
tree322a69fa39bdaf37bbfffc84020acbd4c87871d0 /src/libnative
parentb75683cadf6c4c55360202cd6a0106be80532451 (diff)
downloadrust-919889a1d688a6bbe2edac8705f048f06b1b455c.tar.gz
rust-919889a1d688a6bbe2edac8705f048f06b1b455c.zip
Replace all ~"" with "".to_owned()
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/io/process.rs16
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()
         );
     }
 }