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:
parent
27fe6810c0
commit
9a6f6c6b75
@ -522,7 +522,6 @@ mod tests {
|
||||
use serde_json;
|
||||
|
||||
use crate::{
|
||||
strutil::SkipPrefix,
|
||||
trace::tests::trace,
|
||||
ui::{
|
||||
component::text::paragraphs::{Paragraph, Paragraphs},
|
||||
|
@ -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 ")
|
||||
|
Loading…
Reference in New Issue
Block a user