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-09 23:47:00 +01:00
parent 55dc180eb5
commit 39c8622685

View File

@ -267,6 +267,7 @@ impl<'a> Translations<'a> {
/// string not to the underlying data, but to the _reference_ to the
/// translations object. This is to facilitate safe interface to
/// flash-based translations. See docs for `flash::get` for details.
#[allow(clippy::needless_lifetimes)]
pub fn get_utf8_glyph<'b>(&'b self, codepoint: u16, font_index: u16) -> *const u8 {
if let Some(glyph) = self.font(font_index).and_then(|t| t.get(codepoint)) {
glyph.as_ptr()