From 61fb07d7bfb50004008a77b9c65f734f88ad8920 Mon Sep 17 00:00:00 2001 From: Serg Tereshchenko Date: Sat, 31 Jul 2021 09:49:46 +0300 Subject: [PATCH] style: Fix clippy warning --- src/renderer/fonts/caching_shaper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();