From 39c8622685e028fc8aafc5de028f9e517170c4fd Mon Sep 17 00:00:00 2001 From: obrusvit Date: Mon, 9 Dec 2024 23:47:00 +0100 Subject: [PATCH] fixup! refactor(core): safe iface for get_glyph_data --- core/embed/rust/src/translations/blob.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/embed/rust/src/translations/blob.rs b/core/embed/rust/src/translations/blob.rs index 1c515a7ede..e48f67ab92 100644 --- a/core/embed/rust/src/translations/blob.rs +++ b/core/embed/rust/src/translations/blob.rs @@ -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()