style(fonts): Removed redundant closure

(Thanks clippy)
macos-click-through
Serg Tereshchenko 3 years ago
parent 334c2d779f
commit 5991117814

@ -54,7 +54,7 @@ impl FontOptions {
pub fn primary_font(&self) -> FontSelection { pub fn primary_font(&self) -> FontSelection {
self.font_list self.font_list
.first() .first()
.map(|f| FontSelection::from(f)) .map(FontSelection::from)
.unwrap_or(FontSelection::Default) .unwrap_or(FontSelection::Default)
} }
} }

Loading…
Cancel
Save