style: Fix clippy warning

macos-click-through
Serg Tereshchenko 3 years ago
parent f25d475ea5
commit 61fb07d7bf

@ -69,7 +69,7 @@ impl CachingShaper {
let options = FontOptions::parse(guifont_setting); let options = FontOptions::parse(guifont_setting);
let font_key = FontKey::from(&options); 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); trace!("Font updated to: {}", guifont_setting);
self.options = options; self.options = options;
self.reset_font_loader(); self.reset_font_loader();

Loading…
Cancel
Save