1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-24 06:11:06 +00:00

fix(core): fix a few "unused" Rust warnings

[no changelog]
This commit is contained in:
Roman Zeyde 2025-01-08 08:58:24 +01:00 committed by Roman Zeyde
parent ae853bb821
commit e78f6d2d6d
3 changed files with 3 additions and 0 deletions

View File

@ -437,6 +437,7 @@ fn generate_trezorhal_bindings() {
.unwrap(); .unwrap();
} }
#[cfg(feature = "crypto")]
fn generate_crypto_bindings() { fn generate_crypto_bindings() {
let out_path = env::var("OUT_DIR").unwrap(); let out_path = env::var("OUT_DIR").unwrap();

View File

@ -1,3 +1,4 @@
#[cfg(feature = "translations")]
use spin::RwLockReadGuard; use spin::RwLockReadGuard;
use crate::{ use crate::{

View File

@ -11,6 +11,7 @@ use crate::{
use super::super::theme; use super::super::theme;
use heapless::Vec; use heapless::Vec;
#[cfg(feature = "ui_debug")]
use ufmt::uwrite; use ufmt::uwrite;
const WORDS_PER_PAGE: usize = 4; const WORDS_PER_PAGE: usize = 4;