From b3a5b6c3499fb302bb241d42351fc300f802bd45 Mon Sep 17 00:00:00 2001 From: obrusvit Date: Wed, 11 Dec 2024 00:22:04 +0100 Subject: [PATCH] fixup! refactor(core): safe iface for get_glyph_data --- core/embed/rust/src/ui/display/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/display/font.rs b/core/embed/rust/src/ui/display/font.rs index 6209342804..b7e22b0530 100644 --- a/core/embed/rust/src/ui/display/font.rs +++ b/core/embed/rust/src/ui/display/font.rs @@ -144,7 +144,7 @@ impl GlyphData { }; 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()) }