From 9a6f6c6b75952543135382f03ad920441f682c61 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 31 May 2024 11:22:30 +0200 Subject: [PATCH] fix(core/ui): fix build of Rust unit tests on T3T1 --- core/embed/rust/src/ui/model_mercury/component/page.rs | 1 - core/embed/rust/src/ui/model_mercury/layout.rs | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/embed/rust/src/ui/model_mercury/component/page.rs b/core/embed/rust/src/ui/model_mercury/component/page.rs index 9e501f549..c2e82caf9 100644 --- a/core/embed/rust/src/ui/model_mercury/component/page.rs +++ b/core/embed/rust/src/ui/model_mercury/component/page.rs @@ -522,7 +522,6 @@ mod tests { use serde_json; use crate::{ - strutil::SkipPrefix, trace::tests::trace, ui::{ component::text::paragraphs::{Paragraph, Paragraphs}, diff --git a/core/embed/rust/src/ui/model_mercury/layout.rs b/core/embed/rust/src/ui/model_mercury/layout.rs index 85242c04f..3f79805bd 100644 --- a/core/embed/rust/src/ui/model_mercury/layout.rs +++ b/core/embed/rust/src/ui/model_mercury/layout.rs @@ -2021,8 +2021,11 @@ mod tests { #[test] fn trace_example_layout() { - let buttons = - Button::cancel_confirm(Button::with_text("Left"), Button::with_text("Right"), false); + let buttons = Button::cancel_confirm( + Button::with_text("Left".into()), + Button::with_text("Right".into()), + false, + ); let ops = OpTextLayout::new(theme::TEXT_NORMAL) .text_normal("Testing text layout, with some text, and some more text. And ")