Skip to content

Commit

Permalink
fix(core): fix a few "unused" Rust warnings
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
romanz committed Jan 16, 2025
1 parent d711fbc commit 53778f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/embed/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ fn generate_trezorhal_bindings() {
.unwrap();
}

#[cfg(feature = "crypto")]
fn generate_crypto_bindings() {
let out_path = env::var("OUT_DIR").unwrap();

Expand Down
1 change: 1 addition & 0 deletions core/embed/rust/src/ui/display/font.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(feature = "translations")]
use spin::RwLockReadGuard;

use crate::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::{
},
};
use heapless::Vec;
#[cfg(feature = "ui_debug")]
use ufmt::uwrite;

const WORDS_PER_PAGE: usize = 4;
Expand Down

0 comments on commit 53778f4

Please sign in to comment.