cargo fmt

This commit is contained in:
Ashley Wulber 2025-02-28 12:42:59 -05:00
parent 76930d8624
commit e9e01af77d
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
17 changed files with 27 additions and 73 deletions

View file

@ -152,7 +152,8 @@ impl From<FontConfig> for iced::Font {
let mut family_map = FAMILY_MAP.lock().unwrap();
let name: &'static str = family_map
.get(font.family.as_str()).copied()
.get(font.family.as_str())
.copied()
.unwrap_or_else(|| {
let value = font.family.clone().leak();
family_map.insert(value);