aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/image_cache_thread.rs
diff options
context:
space:
mode:
authorAndre Silva <andre.beat@gmail.com>2016-07-02 17:56:35 +0100
committerAndre Silva <andre.beat@gmail.com>2016-07-02 17:56:35 +0100
commitb10c3582d2803ddfd2e87f1426691f8edb5d070b (patch)
tree9f15cfe9d8f9c05a922ad6714073b8a5fb1eed1b /components/net/image_cache_thread.rs
parent40909eda84522f578f9ae6758c6d2b5689f8eb66 (diff)
downloadservo-b10c3582d2803ddfd2e87f1426691f8edb5d070b.tar.gz
servo-b10c3582d2803ddfd2e87f1426691f8edb5d070b.zip
Remove unnecessary uses of unwrap in ImageCache::handle_cmd
Diffstat (limited to 'components/net/image_cache_thread.rs')
-rw-r--r--components/net/image_cache_thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/image_cache_thread.rs b/components/net/image_cache_thread.rs
index 3991c5553ac..fd6f62ebbea 100644
--- a/components/net/image_cache_thread.rs
+++ b/components/net/image_cache_thread.rs
@@ -406,11 +406,11 @@ impl ImageCache {
}
ImageCacheCommand::GetImageIfAvailable(url, use_placeholder, consumer) => {
let result = self.get_image_if_available(url, use_placeholder);
- consumer.send(result).unwrap();
+ let _ = consumer.send(result);
}
ImageCacheCommand::GetImageOrMetadataIfAvailable(url, use_placeholder, consumer) => {
let result = self.get_image_or_meta_if_available(url, use_placeholder);
- consumer.send(result).unwrap();
+ let _ = consumer.send(result);
}
ImageCacheCommand::StoreDecodeImage(url, image_vector) => {
self.store_decode_image(url, image_vector);