aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/net/http_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/net/http_loader.rs')
-rw-r--r--src/components/net/http_loader.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/net/http_loader.rs b/src/components/net/http_loader.rs
index e06fe90ccf7..de6a35d3e5f 100644
--- a/src/components/net/http_loader.rs
+++ b/src/components/net/http_loader.rs
@@ -13,12 +13,12 @@ use http::headers::HeaderEnum;
use std::rt::io::Reader;
pub fn factory() -> LoaderTask {
- let f: LoaderTask = |url, progress_chan| {
+ let f: LoaderTask = |url, progress_chan| {
let url = Cell::new(url);
let progress_chan = Cell::new(progress_chan);
spawn(|| load(url.take(), progress_chan.take()))
- };
- f
+ };
+ f
}
fn load(url: Url, progress_chan: Chan<ProgressMsg>) {