diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-01-21 03:48:49 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-01-21 03:48:49 -0700 |
commit | 8df0ee2bb5d40e4b22db1666982e2e5ea36513f6 (patch) | |
tree | 6bed465dae6bda2340db62dec1c40f0fd1d77513 /components/net/storage_task.rs | |
parent | 94ebc7c32d5ce58ada3f9d8ffdb60cc025eb5997 (diff) | |
parent | 808315926cf5fd49c26fcbbc4e2a2d281b3fca46 (diff) | |
download | servo-8df0ee2bb5d40e4b22db1666982e2e5ea36513f6.tar.gz servo-8df0ee2bb5d40e4b22db1666982e2e5ea36513f6.zip |
auto merge of #4703 : servo/servo/task, r=saneyuki
IntoString has been removed from Rust, and named() will take a String, so
there is no good reason to do otherwise here.
Diffstat (limited to 'components/net/storage_task.rs')
-rw-r--r-- | components/net/storage_task.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/net/storage_task.rs b/components/net/storage_task.rs index d83a5c6f43c..aafe0885992 100644 --- a/components/net/storage_task.rs +++ b/components/net/storage_task.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +use std::borrow::ToOwned; use std::comm::{channel, Receiver, Sender}; use std::collections::HashMap; use std::collections::TreeMap; @@ -46,7 +47,7 @@ impl StorageTaskFactory for StorageTask { /// Create a StorageTask fn new() -> StorageTask { let (chan, port) = channel(); - spawn_named("StorageManager", proc() { + spawn_named("StorageManager".to_owned(), proc() { StorageManager::new(port).start(); }); chan |