about summary refs log tree commit diff
path: root/src/libstd/task.rs
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2014-05-25 03:10:11 -0700
committerRicho Healey <richo@psych0tik.net>2014-05-27 11:11:15 -0700
commit4348e23b269739657d934b532ad061bfd6d92309 (patch)
tree4dece24751feb7145444c52fd05a1c5f7ca2de9d /src/libstd/task.rs
parentc7fe4ffe3d8315dfe98bee6d040b5a0381daab91 (diff)
downloadrust-4348e23b269739657d934b532ad061bfd6d92309.tar.gz
rust-4348e23b269739657d934b532ad061bfd6d92309.zip
std: Remove String's to_owned
Diffstat (limited to 'src/libstd/task.rs')
-rw-r--r--src/libstd/task.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs
index 078883aac13..37244b26ad5 100644
--- a/src/libstd/task.rs
+++ b/src/libstd/task.rs
@@ -295,7 +295,7 @@ fn test_unnamed_task() {
 
 #[test]
 fn test_owned_named_task() {
-    TaskBuilder::new().named("ada lovelace".to_owned()).spawn(proc() {
+    TaskBuilder::new().named("ada lovelace".to_string()).spawn(proc() {
         with_task_name(|name| {
             assert!(name.unwrap() == "ada lovelace");
         })
@@ -367,7 +367,7 @@ fn test_back_to_the_future_result() {
 #[test]
 fn test_try_success() {
     match try(proc() {
-        "Success!".to_owned()
+        "Success!".to_string()
     }).as_ref().map(|s| s.as_slice()) {
         result::Ok("Success!") => (),
         _ => fail!()