diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-06-23 16:46:33 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-06-23 16:46:33 +1000 |
commit | 6f6b149d502d38f7ed270aeaf959cc5d5ee08203 (patch) | |
tree | 6a86a61cb035698402a7dfc1642217332f92d4c6 /src/components/main/layout/layout_task.rs | |
parent | b224c414c2499f19abde538953ef304151786850 (diff) | |
download | servo-6f6b149d502d38f7ed270aeaf959cc5d5ee08203.tar.gz servo-6f6b149d502d38f7ed270aeaf959cc5d5ee08203.zip |
Remove box from image cache task.
Diffstat (limited to 'src/components/main/layout/layout_task.rs')
-rw-r--r-- | src/components/main/layout/layout_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/layout/layout_task.rs b/src/components/main/layout/layout_task.rs index a486499556d..1bd7b939108 100644 --- a/src/components/main/layout/layout_task.rs +++ b/src/components/main/layout/layout_task.rs @@ -85,7 +85,7 @@ pub struct LayoutTask { pub image_cache_task: ImageCacheTask, /// The local image cache. - pub local_image_cache: Arc<Mutex<Box<LocalImageCache>>>, + pub local_image_cache: Arc<Mutex<LocalImageCache>>, /// The size of the viewport. pub screen_size: Size2D<Au>, @@ -312,7 +312,7 @@ impl LayoutTask { opts: &Opts, profiler_chan: ProfilerChan) -> LayoutTask { - let local_image_cache = Arc::new(Mutex::new(box LocalImageCache(image_cache_task.clone()))); + let local_image_cache = Arc::new(Mutex::new(LocalImageCache(image_cache_task.clone()))); let screen_size = Size2D(Au(0), Au(0)); let parallel_traversal = if opts.layout_threads != 1 { Some(WorkQueue::new("LayoutWorker", opts.layout_threads, ptr::mut_null())) |