diff --git a/core/embed/rust/src/translations/blob.rs b/core/embed/rust/src/translations/blob.rs index 8862a56c72..03ed46b92b 100644 --- a/core/embed/rust/src/translations/blob.rs +++ b/core/embed/rust/src/translations/blob.rs @@ -259,7 +259,8 @@ impl<'a> Translations<'a> { &self.header } - /// Returns a byte slice of the glyph data for the given UTF-8 codepoint in the specified font. + /// Returns a byte slice of the glyph data for the given UTF-8 codepoint in + /// the specified font. /// /// SAFETY: Do not mess with the lifetimes in this signature. /// diff --git a/core/embed/rust/src/ui/display/font.rs b/core/embed/rust/src/ui/display/font.rs index 7cdff05d7d..b606449668 100644 --- a/core/embed/rust/src/ui/display/font.rs +++ b/core/embed/rust/src/ui/display/font.rs @@ -180,7 +180,8 @@ impl GlyphData { }) } - /// Returns glyph data slice from a raw pointer by reading the header and calculating full size. + /// Returns glyph data slice from a raw pointer by reading the header and + /// calculating full size. unsafe fn load_glyph_from_ptr(&self, ptr: *const u8) -> &[u8] { unsafe { let header = slice::from_raw_parts(ptr, 2);