1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-12 17:38:13 +00:00

fixup! refactor(core): safe iface for get_glyph_data

This commit is contained in:
obrusvit 2024-12-11 00:22:04 +01:00
parent 74ad10d441
commit b3a5b6c349

View File

@ -144,7 +144,7 @@ impl GlyphData {
}; };
let gl_data = self.get_glyph_data(ch as u16); let gl_data = self.get_glyph_data(ch as u16);
ensure!(!gl_data.is_none(), "Failed to load glyph"); ensure!(gl_data.is_some(), "Failed to load glyph");
Glyph::load(gl_data.unwrap()) Glyph::load(gl_data.unwrap())
} }