aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/servo.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2014-07-07 15:43:47 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2014-07-07 15:43:47 +1000
commit422bda73792fc1ac5ef589367b69841f2a02ced1 (patch)
tree89e6a25f3c6a28e2a28197a5f0fe45de4d399df6 /src/components/main/servo.rs
parente62637fee2f1c9627468dde81a68df1dd40b6bc9 (diff)
downloadservo-422bda73792fc1ac5ef589367b69841f2a02ced1.tar.gz
servo-422bda73792fc1ac5ef589367b69841f2a02ced1.zip
Warning police.
Diffstat (limited to 'src/components/main/servo.rs')
-rw-r--r--src/components/main/servo.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/main/servo.rs b/src/components/main/servo.rs
index 49f68a2bf1b..929bfea6491 100644
--- a/src/components/main/servo.rs
+++ b/src/components/main/servo.rs
@@ -31,7 +31,7 @@ use compositing::{CompositorChan, CompositorTask, Constellation};
use servo_msg::constellation_msg::{ConstellationChan, InitLoadUrlMsg};
#[cfg(not(test))]
-use servo_net::image_cache_task::{ImageCacheTask, SyncImageCacheTask};
+use servo_net::image_cache_task::ImageCacheTask;
#[cfg(not(test))]
use servo_net::resource_task::ResourceTask;
#[cfg(not(test))]
@@ -111,9 +111,9 @@ pub fn run(opts: opts::Opts) {
// image load or we risk emitting an output file missing the
// image.
let image_cache_task = if opts.output_file.is_some() {
- SyncImageCacheTask(resource_task.clone())
+ ImageCacheTask::new_sync(resource_task.clone())
} else {
- ImageCacheTask(resource_task.clone())
+ ImageCacheTask::new(resource_task.clone())
};
let constellation_chan = Constellation::start(compositor_chan,
opts,