diff options
Diffstat (limited to 'components/gfx/font_context.rs')
-rw-r--r-- | components/gfx/font_context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/gfx/font_context.rs b/components/gfx/font_context.rs index 718e64c7e91..7d2b1740393 100644 --- a/components/gfx/font_context.rs +++ b/components/gfx/font_context.rs @@ -222,7 +222,7 @@ impl FontContext { // If unable to create any of the specified fonts, create one from the // list of last resort fonts for this platform. - if fonts.len() == 0 { + if fonts.is_empty() { let mut cache_hit = false; for cached_font_entry in self.fallback_font_cache.iter() { let cached_font = cached_font_entry.font.borrow(); |