mirror of
https://github.com/servo/servo.git
synced 2025-07-14 19:03:40 +01:00
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 -->
This commit is contained in:
commit
a9c58c99fb
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue