From e78f6d2d6d0ee6481863ed811b657ef1b986a99a Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Wed, 8 Jan 2025 08:58:24 +0100 Subject: [PATCH] fix(core): fix a few "unused" Rust warnings [no changelog] --- core/embed/rust/build.rs | 1 + core/embed/rust/src/ui/display/font.rs | 1 + core/embed/rust/src/ui/layout_bolt/component/share_words.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/core/embed/rust/build.rs b/core/embed/rust/build.rs index ebcc083bc7..85e0ae93b3 100644 --- a/core/embed/rust/build.rs +++ b/core/embed/rust/build.rs @@ -437,6 +437,7 @@ fn generate_trezorhal_bindings() { .unwrap(); } +#[cfg(feature = "crypto")] fn generate_crypto_bindings() { let out_path = env::var("OUT_DIR").unwrap(); diff --git a/core/embed/rust/src/ui/display/font.rs b/core/embed/rust/src/ui/display/font.rs index ccd6984a33..5ca49f0d93 100644 --- a/core/embed/rust/src/ui/display/font.rs +++ b/core/embed/rust/src/ui/display/font.rs @@ -1,3 +1,4 @@ +#[cfg(feature = "translations")] use spin::RwLockReadGuard; use crate::{ diff --git a/core/embed/rust/src/ui/layout_bolt/component/share_words.rs b/core/embed/rust/src/ui/layout_bolt/component/share_words.rs index 12fe1e677d..25d458bbfb 100644 --- a/core/embed/rust/src/ui/layout_bolt/component/share_words.rs +++ b/core/embed/rust/src/ui/layout_bolt/component/share_words.rs @@ -11,6 +11,7 @@ use crate::{ use super::super::theme; use heapless::Vec; +#[cfg(feature = "ui_debug")] use ufmt::uwrite; const WORDS_PER_PAGE: usize = 4;