aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/http_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/http_loader.rs')
-rw-r--r--components/net/http_loader.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs
index c7cb56d4231..92b9692fda0 100644
--- a/components/net/http_loader.rs
+++ b/components/net/http_loader.rs
@@ -2,7 +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 resource_task::{Metadata, Payload, Done, LoadResponse, LoadData, LoaderTask, start_sending_opt};
+use resource_task::{Metadata, Payload, Done, LoadResponse, LoadData, start_sending_opt};
use std::collections::hashmap::HashSet;
use http::client::{RequestWriter, NetworkStream};
@@ -11,11 +11,8 @@ use std::io::Reader;
use servo_util::task::spawn_named;
use url::Url;
-pub fn factory() -> LoaderTask {
- let f: LoaderTask = proc(url, start_chan) {
- spawn_named("http_loader", proc() load(url, start_chan))
- };
- f
+pub fn factory(load_data: LoadData, start_chan: Sender<LoadResponse>) {
+ spawn_named("http_loader", proc() load(url, start_chan))
}
fn send_error(url: Url, err: String, start_chan: Sender<LoadResponse>) {