From 4ddcc7ddc727a3bde2813b2dfe136dd81f9efcd8 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 28 Apr 2014 17:05:13 +0530 Subject: Remove unused_mut warning --- src/components/main/layout/layout_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/main/layout/layout_task.rs') diff --git a/src/components/main/layout/layout_task.rs b/src/components/main/layout/layout_task.rs index 24af14e5303..20f5a455989 100644 --- a/src/components/main/layout/layout_task.rs +++ b/src/components/main/layout/layout_task.rs @@ -546,7 +546,7 @@ impl LayoutTask { { // Reset the image cache. let val = self.local_image_cache.lock(); - let mut local_image_cache = unsafe { + let local_image_cache = unsafe { cast::transmute::<*(), &mut LocalImageCache>(*val) }; local_image_cache.next_round(self.make_on_image_available_cb()); -- cgit v1.2.3