]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-2631-b.rs
test: Remove all uses of `~str` from the test suite.
[rust.git] / src / test / run-pass / issue-2631-b.rs
index ce67b4c3fda7e5054360f9f1e5e69492a46df8e8..8216e341135948a1684d14271732e4e74ed88fd0 100644 (file)
@@ -20,8 +20,8 @@
 use collections::HashMap;
 
 pub fn main() {
-  let v = vec!(@"hi".to_owned());
+  let v = vec!(@"hi".to_strbuf());
   let mut m: req::header_map = HashMap::new();
-  m.insert("METHOD".to_owned(), @RefCell::new(v));
+  m.insert("METHOD".to_strbuf(), @RefCell::new(v));
   request::<int>(&m);
 }