diff --git a/src/renderer/fonts/caching_shaper.rs b/src/renderer/fonts/caching_shaper.rs index 206dff2..331967c 100644 --- a/src/renderer/fonts/caching_shaper.rs +++ b/src/renderer/fonts/caching_shaper.rs @@ -69,7 +69,7 @@ impl CachingShaper { let options = FontOptions::parse(guifont_setting); let font_key = FontKey::from(&options); - if let Some(_) = self.font_loader.get_or_load(&font_key) { + if self.font_loader.get_or_load(&font_key).is_some() { trace!("Font updated to: {}", guifont_setting); self.options = options; self.reset_font_loader();