diff options
author | Hugh Gallagher <hgallagher1993@gmail.com> | 2016-07-04 20:03:47 +0100 |
---|---|---|
committer | Hugh Gallagher <hgallagher1993@gmail.com> | 2016-07-05 07:59:25 +0100 |
commit | 267f96e7310623adc21427d0f60d0c81c53f73cf (patch) | |
tree | fc94a470bef4c73f303bdd0528033e6edca0489c /components | |
parent | d3a1a4ec7d936ecc0b431c09c3e9a7cc7b92538f (diff) | |
download | servo-267f96e7310623adc21427d0f60d0c81c53f73cf.tar.gz servo-267f96e7310623adc21427d0f60d0c81c53f73cf.zip |
avoid many uses of unwrap in font_cache_thread.rs
Diffstat (limited to 'components')
-rw-r--r-- | components/gfx/font_cache_thread.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/gfx/font_cache_thread.rs b/components/gfx/font_cache_thread.rs index b0a156c4a17..eb11cf62413 100644 --- a/components/gfx/font_cache_thread.rs +++ b/components/gfx/font_cache_thread.rs @@ -165,11 +165,11 @@ impl FontCache { match msg { Command::GetFontTemplate(family, descriptor, result) => { let maybe_font_template = self.find_font_template(&family, &descriptor); - result.send(Reply::GetFontTemplateReply(maybe_font_template)).unwrap(); + let _ = result.send(Reply::GetFontTemplateReply(maybe_font_template)); } Command::GetLastResortFontTemplate(descriptor, result) => { let font_template = self.last_resort_font_template(&descriptor); - result.send(Reply::GetFontTemplateReply(Some(font_template))).unwrap(); + let _ = result.send(Reply::GetFontTemplateReply(Some(font_template))); } Command::AddWebFont(family_name, sources, result) => { self.handle_add_web_font(family_name, sources, result); @@ -180,7 +180,7 @@ impl FontCache { drop(result.send(())); } Command::Exit(result) => { - result.send(()).unwrap(); + let _ = result.send(()); break; } } |