1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

fix(core/ui): fix build of Rust unit tests on T3T1

This commit is contained in:
matejcik 2024-05-31 11:22:30 +02:00 committed by matejcik
parent 27fe6810c0
commit 9a6f6c6b75
2 changed files with 5 additions and 3 deletions

View File

@ -522,7 +522,6 @@ mod tests {
use serde_json;
use crate::{
strutil::SkipPrefix,
trace::tests::trace,
ui::{
component::text::paragraphs::{Paragraph, Paragraphs},

View File

@ -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 ")