]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/hashmap-memory.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / hashmap-memory.rs
index d0493d274cfccbef69d5d7a55b55909a921451af..32ce8e6f5422592097a6b70f5ce46c9dfc0e4a7f 100644 (file)
@@ -20,7 +20,7 @@
    This originally came from the word-count benchmark.
 */
 
-pub fn map(filename: ~str, emit: map_reduce::putter) { emit(filename, ~"1"); }
+pub fn map(filename: ~str, emit: map_reduce::putter) { emit(filename, "1".to_owned()); }
 
 mod map_reduce {
     use collections::HashMap;
@@ -96,5 +96,5 @@ pub fn map_reduce(inputs: Vec<~str>) {
 }
 
 pub fn main() {
-    map_reduce::map_reduce(vec!(~"../src/test/run-pass/hashmap-memory.rs"));
+    map_reduce::map_reduce(vec!("../src/test/run-pass/hashmap-memory.rs".to_owned()));
 }