diff --git a/core/embed/rust/src/ui/layout_samson/component/error.rs b/core/embed/rust/src/ui/layout_samson/component/error.rs index 6fb7f0ad30..c033929da9 100644 --- a/core/embed/rust/src/ui/layout_samson/component/error.rs +++ b/core/embed/rust/src/ui/layout_samson/component/error.rs @@ -24,7 +24,6 @@ pub struct ErrorScreen<'a> { title: Child>, message: Child>, footer: Child>, - area: Rect, } impl<'a> ErrorScreen<'a> { @@ -39,7 +38,6 @@ impl<'a> ErrorScreen<'a> { title: Child::new(title), message: Child::new(message), footer: Child::new(footer), - area: Rect::zero(), } } } @@ -47,7 +45,7 @@ impl<'a> ErrorScreen<'a> { impl Component for ErrorScreen<'_> { type Msg = Never; - fn place(&mut self, bounds: Rect) -> Rect { + fn place(&mut self, _bounds: Rect) -> Rect { self.bg.place(screen()); let title_area = Rect::new(screen().top_left(), screen().top_right() + Offset::y(11)); @@ -77,7 +75,6 @@ impl Component for ErrorScreen<'_> { ); self.footer.place(footer_area); - self.area = bounds; screen() }