1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Remove RwLock around Font::characters

This commit is contained in:
Emil Ernerfeldt
2022-01-22 15:06:48 +01:00
parent 2fe3dd0c58
commit 93d5e222db
3 changed files with 8 additions and 14 deletions

View File

@@ -73,7 +73,7 @@ impl super::View for FontBook {
let named_chars = self.named_chars.entry(text_style).or_insert_with(|| {
ui.fonts()
.lock()
.font(text_style)
.font_mut(text_style)
.characters()
.iter()
.filter(|chr| !chr.is_whitespace() && !chr.is_ascii_control())