From 33719cb7b4aee3c3f443d10716a800ebd6f4d0f1 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Wed, 24 Apr 2024 17:35:55 +0200 Subject: [PATCH] chore(core/rust): fix formatting --- .../src/ui/model_mercury/component/address_details.rs | 9 +++------ .../src/ui/model_mercury/component/keyboard/bip39.rs | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/core/embed/rust/src/ui/model_mercury/component/address_details.rs b/core/embed/rust/src/ui/model_mercury/component/address_details.rs index c3e7ca7dd..2d80a0517 100644 --- a/core/embed/rust/src/ui/model_mercury/component/address_details.rs +++ b/core/embed/rust/src/ui/model_mercury/component/address_details.rs @@ -60,12 +60,9 @@ impl AddressDetails { ) .with_cancel_button() .with_border(theme::borders_horizontal_scroll()), - details: Frame::left_aligned( - details_title, - para.into_paragraphs(), - ) - .with_cancel_button() - .with_border(theme::borders_horizontal_scroll()), + details: Frame::left_aligned(details_title, para.into_paragraphs()) + .with_cancel_button() + .with_border(theme::borders_horizontal_scroll()), xpub_view: Frame::left_aligned( " \n ".into(), Paragraph::new(&theme::TEXT_MONO, "").into_paragraphs(), diff --git a/core/embed/rust/src/ui/model_mercury/component/keyboard/bip39.rs b/core/embed/rust/src/ui/model_mercury/component/keyboard/bip39.rs index 8697af368..8aba67d34 100644 --- a/core/embed/rust/src/ui/model_mercury/component/keyboard/bip39.rs +++ b/core/embed/rust/src/ui/model_mercury/component/keyboard/bip39.rs @@ -23,9 +23,9 @@ use heapless::String; const MAX_LENGTH: usize = 8; pub struct Bip39Input { - button: Button<>, + button: Button, // used only to keep track of suggestion text color - button_suggestion: Button<>, + button_suggestion: Button, textbox: TextBox, multi_tap: MultiTapKeyboard, options_num: Option,