diff options
author | Aneesh Agrawal <aneeshusa@gmail.com> | 2015-04-13 17:23:03 -0400 |
---|---|---|
committer | Aneesh Agrawal <aneeshusa@gmail.com> | 2015-04-13 17:23:03 -0400 |
commit | 395e8a598111213ba08b53b2930c8dc18ad98dfd (patch) | |
tree | 2b7bad1308c0cb9d537e08a086f17dbfc9611adb /components/net/image_cache_task.rs | |
parent | 5b593a3d3264599fb83e6ab2c2ffe2d14078057c (diff) | |
download | servo-395e8a598111213ba08b53b2930c8dc18ad98dfd.tar.gz servo-395e8a598111213ba08b53b2930c8dc18ad98dfd.zip |
Make minor syntax simplification to address review.
Diffstat (limited to 'components/net/image_cache_task.rs')
-rw-r--r-- | components/net/image_cache_task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/image_cache_task.rs b/components/net/image_cache_task.rs index d5fedb7bca2..0eeff0820c8 100644 --- a/components/net/image_cache_task.rs +++ b/components/net/image_cache_task.rs @@ -303,7 +303,7 @@ impl ImageCache { load_from_memory(&data) }); - let image = image.map(|image| Arc::new(image)); + let image = image.map(Arc::new); to_cache.send(Msg::StoreImage(url.clone(), image)).unwrap(); debug!("image_cache_task: ended image decode for {}", url.serialize()); }); |