diff --git a/core/embed/rust/src/micropython/util.rs b/core/embed/rust/src/micropython/util.rs index caa2ae2d3d..7a836d05b8 100644 --- a/core/embed/rust/src/micropython/util.rs +++ b/core/embed/rust/src/micropython/util.rs @@ -21,6 +21,7 @@ pub unsafe fn try_or_raise(func: impl FnOnce() -> Result) -> T { /// Extract kwargs from a C call and pass them into Rust. Raise exception if an /// error occurs. Should only called when returning from Rust to C. See /// `raise_exception` for details. +#[allow(dead_code)] pub unsafe fn try_with_kwargs( kwargs: *const Map, func: impl FnOnce(&Map) -> Result, diff --git a/core/embed/rust/src/storage/mod.rs b/core/embed/rust/src/storage/mod.rs index 29d4777ff6..a9a123ddc3 100644 --- a/core/embed/rust/src/storage/mod.rs +++ b/core/embed/rust/src/storage/mod.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use crate::trezorhal::storage::{get, get_length}; pub const HOMESCREEN_MAX_SIZE: usize = 16384; diff --git a/core/embed/rust/src/trezorhal/dma2d.rs b/core/embed/rust/src/trezorhal/dma2d.rs index 0de4daa17d..ca6e6693ab 100644 --- a/core/embed/rust/src/trezorhal/dma2d.rs +++ b/core/embed/rust/src/trezorhal/dma2d.rs @@ -1,5 +1,6 @@ use super::ffi; +#[allow(dead_code)] pub fn dma2d_setup_4bpp(fg_color: u16, bg_color: u16) { unsafe { ffi::dma2d_setup_4bpp(fg_color, bg_color) } } @@ -12,6 +13,7 @@ pub fn dma2d_setup_4bpp_over_16bpp(overlay_color: u16) { unsafe { ffi::dma2d_setup_4bpp_over_16bpp(overlay_color) } } +#[allow(dead_code)] pub fn dma2d_start(buffer: &[u8], pixels: i16) { unsafe { ffi::dma2d_start( diff --git a/core/embed/rust/src/trezorhal/rgb_led.rs b/core/embed/rust/src/trezorhal/rgb_led.rs index f1a46b9f5a..379797e51d 100644 --- a/core/embed/rust/src/trezorhal/rgb_led.rs +++ b/core/embed/rust/src/trezorhal/rgb_led.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use super::ffi; pub fn set_color(color: u32) { diff --git a/core/embed/rust/src/trezorhal/storage.rs b/core/embed/rust/src/trezorhal/storage.rs index 0c728b006d..c05621c785 100644 --- a/core/embed/rust/src/trezorhal/storage.rs +++ b/core/embed/rust/src/trezorhal/storage.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use super::ffi; use crate::error::Error; use core::ptr; diff --git a/core/embed/rust/src/ui/display/loader/rectangular.rs b/core/embed/rust/src/ui/display/loader/rectangular.rs index 7ad16c57f0..785f59c0e6 100644 --- a/core/embed/rust/src/ui/display/loader/rectangular.rs +++ b/core/embed/rust/src/ui/display/loader/rectangular.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] // clippy marks these unused, as they are only for TR + use crate::ui::{ constant::{screen, LOADER_INNER}, display, diff --git a/core/embed/rust/src/ui/display/loader/starry.rs b/core/embed/rust/src/ui/display/loader/starry.rs index 2dbdd2f5f4..ca894acfae 100644 --- a/core/embed/rust/src/ui/display/loader/starry.rs +++ b/core/embed/rust/src/ui/display/loader/starry.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] // clippy marks these unused, as they are only for TR + use crate::ui::{ constant::{screen, LOADER_OUTER}, display::{rect_fill, rect_fill_rounded, rect_fill_rounded1, Color, Icon},