cargo fmt
This commit is contained in:
parent
76930d8624
commit
e9e01af77d
17 changed files with 27 additions and 73 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue