aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-07-03 07:26:53 -0700
committerGitHub <noreply@github.com>2016-07-03 07:26:53 -0700
commita9c58c99fb897f95f37d893ecb3994864ef58da9 (patch)
treec293cc54e15bf55e52393ea6d1d14ba0208136f8
parented514d7934997742cecc150f232033c13fbda323 (diff)
parentb10c3582d2803ddfd2e87f1426691f8edb5d070b (diff)
downloadservo-a9c58c99fb897f95f37d893ecb3994864ef58da9.tar.gz
servo-a9c58c99fb897f95f37d893ecb3994864ef58da9.zip
Auto merge of #12175 - andrebeat:fix-handle-cmd-unwrap, r=ConnorGBrewster
Remove unnecessary uses of unwrap in ImageCache::handle_cmd <!-- Please describe your changes on the following line: --> Remove unnecessary uses of unwrap in `ImageCache::handle_cmd`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12173 <!-- Either: --> - [X] These changes do not require tests <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12175) <!-- Reviewable:end -->
-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);