1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 13:58:08 +00:00

chore(core/rust): remove warnings in translations

This commit is contained in:
matejcik 2024-07-12 16:06:40 +02:00 committed by matejcik
parent 3fcb0acaff
commit 3884abde64
2 changed files with 1 additions and 1 deletions

View File

@ -405,6 +405,7 @@ impl<'a> TranslationsHeader<'a> {
} }
pub fn verify(&self) -> Result<(), Error> { pub fn verify(&self) -> Result<(), Error> {
#[allow(unused_mut)]
let mut result = self.verify_with_keys(&public_keys::PUBLIC_KEYS); let mut result = self.verify_with_keys(&public_keys::PUBLIC_KEYS);
#[cfg(feature = "debug")] #[cfg(feature = "debug")]
if result.is_err() { if result.is_err() {

View File

@ -6,7 +6,6 @@ mod obj;
mod public_keys; mod public_keys;
mod translated_string; mod translated_string;
pub use blob::MAX_HEADER_LEN;
pub use translated_string::TranslatedString as TR; pub use translated_string::TranslatedString as TR;
pub const DEFAULT_LANGUAGE: &str = "en-US"; pub const DEFAULT_LANGUAGE: &str = "en-US";